URLパラメタをXMLに変換する可能性はありますか?私は、XPathで文字列をトークン化しようとしたURLパラメータからXMLへ
<root>
<firstName>John</firstName>
<lastName>Doe</lastName>
<birthDate>1970-01-01</birthDate>
...
</root>
:私のようなXMLに文字列を変換したい
今"firsteName=John&lastName=Doe&birthDate=1970-01-01&..."
:
例、私はURL-Parmeterとの文字列を持っていますしかし、その結果は出動していない。
<Response>
<query>
firsteName=John&lastName=Doe&birthDate=1970-01-01
</query>
</Response>
と私はXMLで次のXPathを試してみました:
入力文字列は次のXMLである
fn:tokenize(/Response/query/, '&')
XSLTやXPathので、これを行う方法はありますか?
質問を編集して、既に試したコードを表示できますか?ありがとうございました。 –
Linux OSの場合は簡単です – RomanPerekhrest