wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Change in XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Change in XML " Watch "Change in XML " New topic

Change in XML

naval kumar
Ranch Hand

Joined: Jul 08, 2012
Posts: 37
dear, i have XML , and i m doing the work on reading Certificate any body please tell me can i change the URI of the below of XML

Like "http://www.w3.org/TR/2001/REC-xml-c14n-20010315" with "xyz".
"http://www.w3.org/2000/09/xmldsig#rsa-sha1" with "abc" it will effect the XML or not.
Bcz this XML , i m storing in databsase so its making long varchar i want to reduce the size.

<Reference URI="">
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

Yes, if you change the document in that way you will affect it. In other words, you will change its meaning.

I don't understand the problem. Just because you are storing it in a long varchar database column, that doesn't mean you have to reduce its size.
Don't get me started about those stupid light bulbs.
subject: Change in XML
Similar Threads
Unable to parse an xml string using builder.parse
Is this XML valid?
my code gives the wrong hash value
Validating XML Digital Signature with Certificate Chain
Sign soap header with handler in WebSphere 6.1