On 7 déc, 01:28, Roman Makurin <[email protected]> wrote:
> Hi All!
>
> I need to handle xml on client side, so Im using following
> scheme:
>
> Document xml = XMLParser.parse(xmlStr);
> Element el = xml.getElementById("id1");
>
> at this point getElementById() returns null, but im 100%
> sure that element with id="id1" presents in xml document.
>
> Why this happen ? And is there any chance to get it
> working ?

Is there a DTD for your XML doc that defines the 'id' attribute to be
of type ID? If not, then 'id' is just an attribute; its name doesn't
make it an ID; that's how XML works.

Good luck! http://bitworking.org/news/2010/12/json-xml-web

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to