How can i add the namepsace into an existing xml
-
I have a xml file scanned from a 2d barcode. The creator decided not to include the namespace info into the code so i have to add it after scanning the file. How can I do it in java?
-
I have a xml file scanned from a 2d barcode. The creator decided not to include the namespace info into the code so i have to add it after scanning the file. How can I do it in java?
-
:sigh:
-
:sigh:
Is this meant to signify something?
-
Is this meant to signify something?
right back at you
-
right back at you
What?
-
I have a xml file scanned from a 2d barcode. The creator decided not to include the namespace info into the code so i have to add it after scanning the file. How can I do it in java?
-
why what? add it? because i have a xsd file to verify the xml which requires the namespace (otherwise it cannot validate the xml)
-
why what? add it? because i have a xsd file to verify the xml which requires the namespace (otherwise it cannot validate the xml)
-
piticcotoc wrote:
(otherwise it cannot validate the xml)
Why do you need to validate the xml that you get from a bar code?
to make sure it was scanned correctly and all the elements are written correctly
-
piticcotoc wrote:
(otherwise it cannot validate the xml)
Why do you need to validate the xml that you get from a bar code?
nvm
-
to make sure it was scanned correctly and all the elements are written correctly
Are you not going to process it? If so then you could and probably should validate it then. However, there are two possibilities: explicit name space or default. Then you add the url, xsd, and namespace prefix (if not default.) Following link is good enough. Read the comments of the first answer. http://stackoverflow.com/questions/751511/validating-an-xml-against-referenced-xsd-in-c-sharp[^]