Welcome Guest ( Log In | Register )




                Web Hosting Guide

 
Reply to this topicNew Topic
Need To Modify Xml Attribute Using Java
Kart
post Aug 12 2006, 06:02 AM
Post #1


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 3
Joined: 12-August 06
Member No.: 15,140



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 using xpath query to retrieve the node but xpath is read only
and cannot modify.

Im not able to use DOM as the xml is very complex and im not
able to go to the exact node
Go to the top of the page
 
+Quote Post
Feussy
post Jun 25 2007, 12:52 AM
Post #2


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 10
Joined: 25-June 07
Member No.: 22,900


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.
Go to the top of the page
 
+Quote Post
iGuest
post Feb 4 2008, 10:41 AM
Post #3


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869


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
Go to the top of the page
 
+Quote Post
java-area
post Feb 5 2008, 09:41 PM
Post #4


Member [ Level 1 ]
Group Icon

Group: [HOSTED]
Posts: 47
Joined: 4-February 08
Member No.: 28,119


QUOTE(FeedBacker @ Feb 4 2008, 05:41 AM) [snapback]118178[/snapback]
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.



Go to the top of the page
 
+Quote Post
java-area
post Feb 5 2008, 09:44 PM
Post #5


Member [ Level 1 ]
Group Icon

Group: [HOSTED]
Posts: 47
Joined: 4-February 08
Member No.: 28,119


QUOTE(Kart @ Aug 12 2006, 01:02 AM) [snapback]84809[/snapback]
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 not
able to go to the exact node


I think the easiest way to do this from Java code is... using SAX- and DOM- parsers!

Go to the top of the page
 
+Quote Post
iGuest
post May 27 2009, 06:31 AM
Post #6


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869


"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

 

Go to the top of the page
 
+Quote Post
iGuest
post Aug 21 2009, 07:12 PM
Post #7


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869


vtd-xml
Need To Modify Xml Attribute Using Java

Replying to Kart You can try vtd-xml, which enables incremental update Http://vtd-xml.Sf.Net -reply by anon_anon
Go to the top of the page
 
+Quote Post
iGuest
post Aug 21 2009, 07:11 PM
Post #8


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869


Replying to Feussy How about using vtd-xml? It has a feature called incremental update Http://vtd-xml.Sf.Net -reply by anon_anon
Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts 11 divinity 1,544 4th November 2009 - 12:35 AM
Last post by: HannahI
No New Posts   7 amit nigam 1,197 4th November 2009 - 12:33 AM
Last post by: HannahI
No New Posts   5 sparkx 684 4th November 2009 - 12:29 AM
Last post by: HannahI
No New Posts   6 FearfullyMade 2,863 28th October 2009 - 08:14 PM
Last post by: HannahI
No New Posts   17 vicky99 6,267 17th October 2009 - 11:51 AM
Last post by: surfermac
No New Posts   5 vicky99 2,115 6th October 2009 - 07:02 AM
Last post by: iG-Daniel
No New Posts   0 starscream 87 24th September 2009 - 12:14 PM
Last post by: starscream
No New Posts   7 suicide 5,069 5th September 2009 - 02:11 PM
Last post by: iG-sam
No New Posts   1 surfermac 241 23rd August 2009 - 09:48 PM
Last post by: yordan
No New Posts   17 mahender 12,602 6th July 2009 - 11:43 AM
Last post by: ashish17
No new   26 Hercco 3,639 22nd May 2009 - 06:05 AM
Last post by: satwant007
No New Posts   2 sendto 4,408 18th April 2009 - 02:12 PM
Last post by: iGuest
No New Posts   1 kingdomtroy 668 23rd March 2009 - 06:02 PM
Last post by: ernesto
No New Posts   6 JMC 3,000 4th February 2009 - 04:02 PM
Last post by: wutske
No New Posts   1 Anil Rao 1,019 3rd December 2008 - 07:57 PM
Last post by: iG-benitoo


Web Hosting Powered by ComputingHost.com.