Page 1 of 1

How to delete certain attributes of the whole xml

Posted: Sat Aug 06, 2016 12:20 pm
by mariog
Hy,

i have xml with cca 5000 products. I need to delete some attributes becouse further rapid proccesing data.

For example i have:

PRODUCT
product id
reference
price
availible
...

In that way for 5000 products.

How can now i delete all reference or any other attribute in all xml?

Re: How to delete certain attributes of the whole xml

Posted: Mon Aug 08, 2016 10:46 am
by alin
Hello,

You can use the "XML Refactoring" action. The action can be accessed from the MENU -> Tools -> XML Refactoring.

In the "XML Refactoring" dialog you should choose the "Delete attribute" operation. In the next page you should fill in the name of the element you want to delete the attribute from (in your case the "PRODUCT" element) and the name of the attribute you want to delete (the "reference" attribute).

You can read more about this tool in our User Manual:
https://www.oxygenxml.com/doc/ug-editor ... nts-1.html
https://www.oxygenxml.com/doc/ug-editor ... attributes
https://www.oxygenxml.com/demo/XML_Refactoring.html