XML : Replace default namespace value from large xml

I have a large xml file that has a default namespace value. How can I replace the value without loading the entire file in memory using java?

  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>  <customer xmlns="http://www.example.org/package">      <id>123</id>  </customer>    

should become

  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>  <customer xmlns="http://www.example.org/another">      <id>123</id>  </customer>    

No comments:

Post a Comment