Hi,
Thanks for your interest and I've found my mistake ... when I want to parse
my XML document ... I thought that I should write the path like
"d:/toto.xml" and I saw an example where it's writing "file:///d:/toto.xml"
so its run ...
Thanks for help ...
I've just one question about the parsing :
In my DTD I have :
<!ELEMENT decision.variable.description (#PCDATA | %block;)*>
<!ATTLIST decision.variable.description
source CDATA #IMPLIED
id ID #IMPLIED
id CDATA #IMPLIED
>
With the function : public void startElement (String uri, String name,String
qName, Attributes atts) where I have a boolean variable to become "true"
when I met "decision.variable" in my XML document .... I obtain so the
content of my "decision.variable" but it is possible to obtain the "id" of
my "decision.variable" ?
Thanks
Gersende
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On Behalf Of GEORG Gersende
> Sent: Friday, May 10, 2002 3:09 AM
> To: [EMAIL PROTECTED]
> Subject: Problem parsing with SAX
>
>
> Hi,
>
>
> I'm just beginning to parse an XML document and I've
> never done this before ... I tried to create an SAXParser and
> I used SetContentHandler and Parse but it doesn't work. I
> forget something I think ....
>
> Can anybody help me to explain how can I parse an XML
> document with java, the method ?? I think after create an
> SAXParser I should do property but I don't know what else ....
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]