hen parse (using
> SAX) each 'XSNamespaceItem.documentLocations' only until reaching
> the root element (throwing something like StopParseException subtype
> of SAXParseException from withing 'startElement' callback) from
> which I extract whatever namespace prefixe
ions' only until reaching
the root element (throwing something like StopParseException subtype
of SAXParseException from withing 'startElement' callback) from
which I extract whatever namespace prefixes found on it. The
structure collecting the prefix-namespace bindings takes c
Mark Brucks wrote on 10/22/2010 06:23:03 PM:
> Your example is still dealing with the interpretation of a prefix in
> an existing document, and I don't have an existing document. I am
> in control of which namespaces and which prefixes would be used.
I was just giving a "simple" example. XML sc
Your example is still dealing with the interpretation of a prefix in an
existing document, and I don't have an existing document. I am in control of
which namespaces and which prefixes would be used.
HOWEVER, your last statement hits the nail on the head and explains everything.
Indeed, I hav
I think an example will help to illustrate why such a method makes no
sense in the API. Consider the following document:
http://a"; xmlns:b="http://b";
xmlns:y="http://y"; xmlns:z="http://z";>
http://www.abc.com"; xmlns:x="http://www.xyz.com";>
http://www.xyz.com"; xmlns:x="http://www
Thanks for the responses.
Some clarification about my problem. I have the schema, but no instance
documents, and hence no worries about the fluid nature of prefixes between
schema and instance documents. My current task is to generate a "starter"
document from the schema. What I would like t
Hi Mark,
Mark Brucks wrote on 10/21/2010 03:17:47 PM:
> Here is the beginning of my schema file:
>
> http://www.foo.com/SchemaOne";
>xmlns:s1="http://www.foo.com/SchemaOne";
>xmlns:s2="http://www.foo.com/SchemaTwo";
>xmlns:s3="http://www.foo.com/SchemaThree";
Mark Brucks
To:
j-users@xerces.apache.org
Date:
10/21/2010 03:14 PM
Subject:
namespace prefixes
Here is the beginning of my schema file:
http://www.foo.com/SchemaOne";
xmlns:s1="http://www.foo.com/SchemaOne";
xmlns:s2="http://www.foo.com/SchemaTwo";
Here is the beginning of my schema file:
http://www.foo.com/SchemaOne";
xmlns:s1="http://www.foo.com/SchemaOne";
xmlns:s2="http://www.foo.com/SchemaTwo";
xmlns:s3="http://www.foo.com/SchemaThree";
...>
Using the XML Schema API, I parse the schema and h