in reply to XML parser to fetch default values of the optional attributes from the xsd file
Just use a standard XML parser to parse the XSD and the XML document. If you don't find the value in the XML document, then you can return the default value from the XSD. Alternatively, write an XSLT to add the default values into the document.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML parser to fetch default values of the optional attributes from the xsd file
by ikegami (Patriarch) on Jan 10, 2011 at 23:26 UTC | |
by roboticus (Chancellor) on Jan 11, 2011 at 18:59 UTC | |
by ikegami (Patriarch) on Jan 11, 2011 at 19:23 UTC | |
|
Re^2: XML parser to fetch default values of the optional attributes from the xsd file
by dHarry (Abbot) on Jan 11, 2011 at 12:45 UTC |