Skip to content
Advertisement

Tag: xmlstarlet

XPath syntax to edit specific node in HTML using xmlstarlet

Supposing I have an HTML document like what’s below: mypage.html How would I edit the element set to MY_ID? I’ve used the following command successfully when it was just the table in a document, but placing it in a larger document broke it: Answer Your td element needs to be closed (</td>) for it to be valid XML. You can

Split string in xml

I have xml file which contains data . I want to split only FATURANO Like that 6-R-7 and 4825 And this “4825” should have different name. I Need convert xml data like that but if u answer me only with first question how to split string correctly i will do other transpormation Answer With single xmlstarlet expression: ed – edit

Advertisement