Table of Contents

Class XmpReader

Namespace
iTextSharp.text.xml.xmp
Assembly
iTextSharp.LGPLv2.Core.dll

Reads an XMP stream into an org.w3c.dom.Document objects. Allows you to replace the contents of a specific tag. @since 2.1.3

public class XmpReader
Inheritance
XmpReader
Inherited Members

Constructors

XmpReader(byte[])

Constructs an XMP reader @throws ExceptionConverter @throws IOException @throws SAXException

public XmpReader(byte[] bytes)

Parameters

bytes byte[]

Methods

Add(string, string, string, string)

Adds a tag. @since 2.1.6

public bool Add(string parent, string namespaceUri, string localName, string value)

Parameters

parent string
namespaceUri string
localName string
value string

Returns

bool

if the content was successfully added

Replace(string, string, string)

Replaces the content of a tag. @since 2.1.6 the return type has changed from void to boolean

public bool Replace(string namespaceUri, string localName, string value)

Parameters

namespaceUri string
localName string
value string

Returns

bool

if the content was successfully replaced

SerializeDoc()

Writes the document to a byte array.

public byte[] SerializeDoc()

Returns

byte[]

SetNodeText(XmlDocument, XmlNode, string)

Sets the text of this node. All the child's node are deleted and a new child text node is created.

public static bool SetNodeText(XmlDocument domDocument, XmlNode n, string value)

Parameters

domDocument XmlDocument

the Document that contains the node

n XmlNode

the Node to add the text to

value string

the text to add

Returns

bool