BAT or VBS to edit existing xml file -
i after code either bat or vbs add line existing xml file…
example of existing xml;
<?xml version="1.0" encoding="utf-8"?> <feature> <feature #1001> <feature #22002> <feature>
example of wanting insert “feature #0000” below;
<?xml version="1.0" encoding="utf-8"?> <feature> <feature #0000> <feature #1001> <feature #22002> <feature>
the existing xml file have varying content thinking looks first “<feature>”
inserts directly line after regardless follows after.
any idea appreciated!
in opinion vbs better can manager spaces , linebreaks, special characters... in bat it's gonna little bit difficult know doing (like adding spaces), vbs has features searching strings, replacing, selecting... bat far know doesn't have these ones. note : simple problem using vbs putting "
character using
chr(34) & "your text" & chr(34)
can job , hope help