How to delete certain attributes of the whole xml

Questions about XML that are not covered by the other forums should go here.
mariog
Posts: 1
Joined: Sat Aug 06, 2016 12:13 pm

How to delete certain attributes of the whole xml

Post 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?
alin
Site Admin
Posts: 268
Joined: Thu Dec 24, 2009 11:21 am

Re: How to delete certain attributes of the whole xml

Post 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
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply