public override void append(JItem item, JLocation location, int copyNamespaces) { if (level == 0) { JXPathException e = new JXPathException("When writing to an XdmDestination, atomic values are only allowed within a document or element node"); } base.append(item, location, copyNamespaces); }
public override void comment(JCharSequence chars, JLocation location, int properties) { if (level == 0) { JXPathException e = new JXPathException("When writing to an XdmDestination, comment nodes are only allowed within a document or element node"); } base.comment(chars, location, properties); }
public override void characters(JCharSequence chars, JLocation location, int properties) { if (level == 0) { JXPathException e = new JXPathException("When writing to an XdmDestination, text nodes are only allowed within a document or element node"); throw new DynamicError(e); } base.characters(chars, location, properties); }
public override void processingInstruction(String target, JCharSequence data, JLocation location, int properties) { if (level == 0) { JXPathException e = new JXPathException("When writing to an XdmDestination, processing instructions are only allowed within a document or element node"); throw new DynamicError(e); } base.processingInstruction(target, data, location, properties); }
public override void startElement(JNodeName nameCode, JSchemaType typeCode, JLocation location, int properties) { if (ended) { JXPathException e = new JXPathException("Only a single root node can be written to an XdmDestination"); throw new DynamicError(e); } base.startElement(nameCode, typeCode, location, properties); level++; }