是否有可能将URL参数转换为XML。到XML的URL参数
例子,我有一个网址,Parmeter的字符串:
"firsteName=John&lastName=Doe&birthDate=1970-01-01&..."
现在我想将字符串转换为XML,如:
<root>
<firstName>John</firstName>
<lastName>Doe</lastName>
<birthDate>1970-01-01</birthDate>
...
</root>
我试图来标记使用XPath字符串,但结果并非如此。
输入字符串是在后续的XML:
<Response>
<query>
firsteName=John&lastName=Doe&birthDate=1970-01-01
</query>
</Response>
,我试图对XML以下XPath:
fn:tokenize(/Response/query/, '&')
有没有办法做到这一点,使用XSLT或XPath?
你能编辑你的问题来显示你已经试过的代码吗?谢谢。 –
在Linux操作系统中很容易 – RomanPerekhrest