Kart 0 Report post Posted August 12, 2006 hi, Im new to xml parsing and dont know much about.I need to modify the attribute val of a tag in a complex xml fileim using xpath query to retrieve the node but xpath is read onlyand cannot modify.Im not able to use DOM as the xml is very complex and im notable to go to the exact node Share this post Link to post Share on other sites
Feussy 0 Report post Posted June 25, 2007 I'd hate to say this, but first, is it possible for you to use a different language. VB.Net has excellent XML parsing capabilities. Java, on the other hand, is very inadequate. Its parsing abilities were included in an attempt to compete with the .Net suite, and there is very little documentation on it. Likewise, last time I checked Sun had not put out any functional case studies and none of the programmers I work with have been able to get it working. Share this post Link to post Share on other sites
iGuest 3 Report post Posted February 4, 2008 How to change the contents of HTML using a java program Need To Modify Xml Attribute Using Java Iam having a HTML page with some title and some paragraphs within it. Now I just want so Change the Heading of the page as well as delete some of its content.Iam just not able to start of with. -shashikanth Share this post Link to post Share on other sites
java-area 0 Report post Posted February 5, 2008 How to change the contents of HTML using a java program...I suppose you are talking dynamic HTML code, created on Server side using one of java-based web technologies (servlet, JSP, JSF etc.).In servlets , before sending response (with HTML code) to the client, you can put any HTML content whatever you want, including body, header etc. - see javax.servlet.http.HttpServletResponse class for details. In JSP/JSF you can modify static HTML code as well as put any JSP (or JSF) tags. Share this post Link to post Share on other sites
java-area 0 Report post Posted February 5, 2008 hi, Im new to xml parsing and dont know much about.I need to modify the attribute val of a tag in a complex xml file.......Im not able to use DOM as the xml is very complex and im notable to go to the exact node I think the easiest way to do this from Java code is... using SAX- and DOM- parsers! Share this post Link to post Share on other sites
iGuest 3 Report post Posted May 27, 2009 "VB.Net has excellent XML parsing capabilities. Java, on the other hand, is very inadequate." What absolute nonsense. Your computer should be taken away from you for spouting such complete idiocy. Both Java and .NET have very good XML processing ability; Java has been right on the edge with W3 right from the start. Don't give advice if you're not properly informed. -reply by Paul Share this post Link to post Share on other sites
iGuest 3 Report post Posted August 21, 2009 Replying to FeussyHow about using vtd-xml? It has a feature called incremental update http://forums.xisto.com/no_longer_exists/ by anon_anon Share this post Link to post Share on other sites
iGuest 3 Report post Posted August 21, 2009 vtd-xmlNeed To Modify Xml Attribute Using JavaReplying to KartYou can try vtd-xml, which enables incremental update http://forums.xisto.com/no_longer_exists/ by anon_anon Share this post Link to post Share on other sites