Issue 30 in xmltool: manual "Loading an existing XML document" out of date

0 views
Skip to first unread message

codesite...@google.com

unread,
May 19, 2009, 12:16:58 PM5/19/09
to xml...@googlegroups.com
Status: Assigned
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 30 by mikenereson: manual "Loading an existing XML document" out
of date
http://code.google.com/p/xmltool/issues/detail?id=30

What steps will reproduce the problem?

The sample code:

URL yahooGeoCode = new
URL("http://local.yahooapis.com/MapsService/V1/geocode?appid=YD-9G7bey8_JXxQP6rxl.fBFGgCdNjoDMACQA--&state=QC&country=CA&zip=H1W3B8");
System.out.println(XMLDoc.from(yahooGeoCode, true).toString());
System.out.println(XMLDoc.from(yahooGeoCode,
true).getText("Result/City"));

Throws IllegalArgumentException: Invalid argument count: expected 2,
recieved 1.

I am running 2.11

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
May 19, 2009, 6:09:43 PM5/19/09
to xml...@googlegroups.com
Updates:
Status: WontFix
Labels: -Type-Defect -Priority-Medium

Comment #1 on issue 30 by mathieu.carbou: manual "Loading an existing XML

Hi,

This code works well. Using JDK 5 or 6. I've added the unit test.

Be careful: if it does not work, it could be caused of some libraries in
your project
which overrides JDK services, like xerces and xalan do in their jar
META-INF/services/*

Reply all
Reply to author
Forward
0 new messages