Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

110
Views
How to write an XML tag with “<” using XMLHttpRequest command prompt echo command

From other StackOverflow posts I am aware of the double quote state machine and the usage of ^< (^ as an escape character). Still I can't make it work:

Hereby my attempts (with their results):

var xmldata = "echo ^<?xml version=\"1.0\" encoding=\"utf-8\"?^> >> MyFile.xml |";

Javascript code:

var xmlhttp = new XMLHttpRequest();
var url = '/?uri'

var xmldata = "echo ^<?xml version=\"1.0\" encoding=\"utf-8\"?^> >> MyFile.xml |";


xmlhttp.onreadystatechange = function() {
    if (xmlhttp.readyState == XMLHttpRequest.DONE) {
       if (xmlhttp.status == 200) {
           console.log(xmlhttp.responseText);
       }
    }
};

xmlhttp.open("POST",url, true);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.send("mode=exec&path=convert|"+xmldata);

final command line:

C:\Users\window7_32\WWW\>C:\Windows\sys
tem32\cmd.exe  /S /D /c "convert|echo ^<?xml version=^"1.0^" encoding=^"utf-8^"?^> >>MyFile.xml|calc "

I need to run three programs,"convert"、"echo "、"calc "

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!