[jdom-interest] using appinfo

philip.nelson at omniresources.com philip.nelson at omniresources.com
Mon Apr 16 18:51:36 PDT 2001


> I'm writing an app that needs to get information from
> elments within an appinfo element in the xml schema
> while it parses an xml file. This means I need my jdom
> implementation to read in both the xml file and the
> xml schema, and parse the appinfo stuff. Any sample
> code or suggestions how best to get the appinfo
> content out using jdom?

Sorry if somebody else has answered this.  How are you referencing the
schema?  

If it's like

<element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="your_file.xsd">
<!-- the document -->
</element>

just get the xsi:noNamespaceSchemaLocation attribute, create a new url on
the location and open it with a builder.  A schema is "just xml"



More information about the jdom-interest mailing list