Abstract
XML is a markup language that describes data and is widely used to exchange data across platforms. Currently, there are three main tools for addressing XML document: XLink, XPath, and XPointer. Among them, XPointer is an advanced addressing tool, which can not only address elements, but also can address specific data such as strings, points and ranges in XML documents. However, for the positioning based on XPointer, how to extract the non-well-formed data content in XML document is still a problem. This paper focuses on the extraction of non-well-formed data content in XML documents. Based on XPath 3.0, extracting and filtering nodes was analyzed. Based on XSLT template, the content of XML documents was selectively output. Finally, a location system based on XPointer was derived, and ultimately achieved advanced addressing for XML documents. 20 XML files were selected as experiment samples to verify the model proposed in the paper. The experimental results demonstrate that the proposed method can locate and represent non-well-formed as well as well-formed data content in XML documents.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Kühn, W., Grell, M., & Robinson, D. (2005). Jdf: Process integration, technology, product description (p. 46) (x.media.publishing).
Liu, Q., & Zhang, Y. (2005). Analysis and research of XPath, XLink and XPointer. In Microcomputer Development, 2000 (Vol. 15, no. 10, pp. 19–22).
DeRose, S., & Maler, E. (2010, May 6). XML Linking Language (XLink) Version 1.1—W3C recommendation. [EB/OL]. https://www.w3.org/TR/xlink/. Accessed May 10, 2018.
Jia, M. (2008). Application of XPath in XML query. Journal of Chongqing Three Gorges University, 24(3), 51–53.
Robie, J., & Chamberlin, D. (2004, April 8). XML Path Language (XPath) 3.0—W3C recommendation. [EB/OL]. https://www.w3.org/TR/xpath-30/. Accessed May 10, 2018.
Kay, M. (2017, June 8). XSL Transformations (XSLT) Version 3.0–W3C recommendation. [EB/OL]. https://www.w3.org/TR/xslt-30/. Accessed May 10, 2018.
Derose, S. (2002, August 16). XML XPointer Language (XPointer) [EB/OL]. http://www.w3.org/TR/xptr/. Accessed May 10, 2018.
DeRose, S., & Maler, E. (2002 December, 19). XPointer xpointer() Scheme—W3C working draft. [EB/OL]. https://www.w3.org/TR/xptr-xpointer/. Accessed May 10, 2018.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2019 Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Fan, C., Li, Z. (2019). Research on Addressing Method in XML File Based on XPointer. In: Zhao, P., Ouyang, Y., Xu, M., Yang, L., Ren, Y. (eds) Advances in Graphic Communication, Printing and Packaging. Lecture Notes in Electrical Engineering, vol 543. Springer, Singapore. https://doi.org/10.1007/978-981-13-3663-8_52
Download citation
DOI: https://doi.org/10.1007/978-981-13-3663-8_52
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-13-3662-1
Online ISBN: 978-981-13-3663-8
eBook Packages: EngineeringEngineering (R0)