Thanks again for your help.
Now I begin to understand what the point is. The first conclusion is that a
schema file (.xsd) can not be validated as is, without adding some extra
statements.
1) You proposed to convert it to a normal XML file (.xml) before executing
parse(), like this:
http://
Thanks Alberto.
As far as I know, the namespace "http://www.w3.org/2001/XMLSchema"; is built
inside the parser. I have never had to specify the location of that schema
before when I was validating documents (my email document was validated
against my email schema, and that was all).
Why do I
I am trying to parse the following schema (just like I would proceed to
parse any XML document) in order to get the values of some of its elements
and attributes. The problem is that parse() fails when validation is
activated. My question is: can a schema be validated?
** email.xsd begin **
I found some pages talking about a DOMWriter class, but I think that it
belongs to the DOM 3 specification and that is only available in the java
version, isn't it?
>From: Robert Buck <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Pretty printing a DOM t
I am using a piece of code extracted from the DOMPrint sample in order to
dump a DOM tree into a XML file. I have also taken a look at the serializer
at the following address:
http://www.xs4all.nl/~ewh/DOMSerializer
Both solutions generate a XML file which is very difficult to be read by a
hu
ods
> > (DOM_Node::getNodeName(), DOM_Element::getTagName()) are ignoring
> > the prefix
> > as well.
> >
> > I am not an experienced developer in Xerces programming so it might be
>due
> > to my inexperience. Some advice would be appreciated.
> >
> > Best r
h Reakes <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: DOM_Node::getPrefix() always returns NULL
>Date: Tue, 14 May 2002 09:29:19 +0100 (BST)
>
>Hi,
> I seem to remember a bug being reported not so long ago where
>prefix
In the following example, I am parsing the XML file and trying to get the
prefix of the node David.
The call to DOM_Node::getPrefix() always returns NULL, while I understand
that it should return "my". However, the call to DOM_Node::getNamespaceURI()
does return the correct value "http://david