Welcome Guest ( Log In | Register )



 
Reply to this topicStart new 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) *
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) *
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

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. java.lang.NullPointException(4)
  2. Java Unlimited(14)
  3. Array Sorting(20)
  4. What Are The Advantages Of Java Vs C++?(15)
  5. Need Help: Find Lowest Character Using Java(6)
  6. Download Java Ebooks(13)
  7. Video Streaming In Web Browser Through Java Or Jsp(1)
  8. Looking For A Java IDE(24)
  9. Java App To Web App(12)
  10. On Why Java Is 'c'ooler!(10)
  11. How To Configure/intergrate Jboss 4 With Java?(1)
  12. Snake In Java(2)
  13. Other Sound Format Support(3)
  14. Java Phone Book(2)
  15. How To Create Exe File In Java?(12)
  1. How Do I Test A Java Aplication(11)
  2. Mozilla And Java!(2)
  3. Bluetooth And Java(5)
  4. Java Sdk Vs. Java Jdk?(2)
  5. Graphcal User Interfaces In Java(4)
  6. Java Db Help Pls(2)
  7. Loading 3d Models In Java?(2)
  8. Java Applet Loading Error(5)
  9. Setting Up Java Correctly(8)
  10. Java Java.security.accesscontrolexception(6)
  11. Simple Java Question(1)
  12. Java And Sql: Data Mismatch(6)
  13. Java Memory Leak?(0)


 



- Lo-Fi Version Time is now: 22nd August 2008 - 02:17 AM