JavaXPathパーサー-XMLドキュメントの作成

XPath parser is used to navigate XML Documents only. It is better to use DOM parser for creating XML. Please refer the Java DOM Parser section for the same.