Hello, I'm new to Xmlstarlet and I need to assign it's output to a variable, but my XML file contains a !DOCTYPE declaration. I'm using the "sel" command and before every output I get "Attempt to load network entity ecc.", it there a switch that prevents this?
EDIT: Actually it's not part of the output but a message, however is there a way to suppress it?
EDIT: I solved using "2>", sorry.
Another possibility is --net which allows loading network entities.
I think it's possible to set up an XML catalog such that things would be fetched from the local disk rather than network, but I'm not really sure how (see http://xmlsoft.org/catalog.html).
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.