static86
asked on
parsing xml with java
Hi,
Can anyone show me example of parsing XML with jerichohtml parser?
Now I can print all tags with:
Can anyone show me example of parsing XML with jerichohtml parser?
Now I can print all tags with:
private static String getSth(StreamedSource source) {
Iterator i = source.iterator();
while (i.hasNext()){
System.out.println(i.next());
}
return null;
}
http://jericho.htmlparser.net/samples/console/src/FindSpecificTags.java
ASKER
thanks,
I've tired displaySegments(source.get AllTags(St artTagType .XML_DECLA RATION)); which prints first line but still I don't know how to display what is inside given tag.
Lines:
displaySegments(source.get AllStartTa gs("TagNam eHere")); returns nothing:/
displaySegments(source.get AllTags()) ; gives me list of tags.
I just need to display value of given tag.
I've tired displaySegments(source.get
Lines:
displaySegments(source.get
displaySegments(source.get
I just need to display value of given tag.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Are you using this parser because you have server-side tags?
ASKER
thanks,i used sax parsers instead.