xml schema / xsd with complexType and mixed="true"
Posted: Mon Jun 06, 2011 1:54 pm
As per the example at http://www.w3.org/TR/2004/REC-xmlschema ... xedContent
Xml importer cannot find the text value of the complex element.
I coded the example in an xsd and imported via the xml schema importer in 7.5. Autochecking the nodes did not check the value for "letterbody". I think it only checks the lowest /leaf nodes.
MANUALLY checking the "letterbody" imports the xpath as ...../letterbody. This will bring in the entire xml chunk including the child elements. I must manually add the "/text()" to the end of the xpath to extract the text in "letterbody" that is not in a child element. This is great if its just ONE instance, but when its a complexType that is referenced multiple times in an xsd, as in this instance, I must manually check about 80 additional nodes (after autocheck) and then, after saving the schema, go to each of those lines and add "/text()".
I can only find ONE unanswered reference on IBM Developerworks.
As it is, the XML importer doesn't appear to understand the full w3 spec at the link above.
Is there a patch for 7.5x2?
Does the xml schema importer / schema manager for 8.1 or 8.5 parse this automatically?
Xml importer cannot find the text value of the complex element.
I coded the example in an xsd and imported via the xml schema importer in 7.5. Autochecking the nodes did not check the value for "letterbody". I think it only checks the lowest /leaf nodes.
MANUALLY checking the "letterbody" imports the xpath as ...../letterbody. This will bring in the entire xml chunk including the child elements. I must manually add the "/text()" to the end of the xpath to extract the text in "letterbody" that is not in a child element. This is great if its just ONE instance, but when its a complexType that is referenced multiple times in an xsd, as in this instance, I must manually check about 80 additional nodes (after autocheck) and then, after saving the schema, go to each of those lines and add "/text()".
I can only find ONE unanswered reference on IBM Developerworks.
As it is, the XML importer doesn't appear to understand the full w3 spec at the link above.
Is there a patch for 7.5x2?
Does the xml schema importer / schema manager for 8.1 or 8.5 parse this automatically?