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

How to delete certain attributes of the whole xml

Sat Aug 06, 2016 12:20 pm

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: 126

Re: How to delete certain attributes of the whole xml

Mon Aug 08, 2016 10:46 am

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

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 1 guest