Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
 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++;
 }