[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Costello, Roger L." <costello@m...>
  • To: "xml-dev@l..." <xml-dev@l...>
  • Date: Wed, 30 Oct 2019 16:26:59 +0000

Hi Folks,

Scenario: The XML Schema says the root element is Document and it contains a sequence of an A element followed by a B element. Here's a schema-valid XML instance:

<Document>
    <A>blah</A>
    <B>bar</B>
</Document>

I receive this instance document:

<Document>
    <A>blah</A>
    <B>bar</B>
    <C>oops</C>
</Document>

For the instance to be schema-valid, the C element must be removed. 

Is there a tool that, given an XML Schema and an XML instance, the tool returns the instance minus any invalid elements? That is, the tool returns a schema-valid instance.

/Roger


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member