/** * Receive notivication of a entityReference. * * @param name name of the entity reference */ public void entityReference(String name) throws org.xml.sax.SAXException { append(m_doc.createEntityReference(name)); }
/** * Receive notivication of a entityReference. * * @param name name of the entity reference */ public void entityReference(String name) throws org.xml.sax.SAXException { append(m_doc.createEntityReference(name)); }
protected void appendDOMTree(org.w3c.dom.Document domDocument, org.w3c.dom.Node domCurrent, Entity entity) { org.w3c.dom.EntityReference domEntity = domDocument .createEntityReference(entity.getName()); domCurrent.appendChild(domEntity); }
/** * This will handle printing of an {@link EntityRef}. * * @param fstack * the FormatStack * @param basedoc * The org.w3c.dom.Document for creating DOM Nodes * @param entity * <code>EntotyRef</code> to write. * @return The input JDOM EntityRef converted to a DOM EntityReference */ protected org.w3c.dom.EntityReference printEntityRef( final FormatStack fstack, final org.w3c.dom.Document basedoc, final EntityRef entity) { return basedoc.createEntityReference(entity.getName()); }
@Override public void startEntity(String name) throws SAXException { EntityReference entityReference = document.createEntityReference(name); node = node.appendChild(entityReference); }
/** Start general entity. */ public void startGeneralEntity(String name, XMLResourceIdentifier id, String encoding, Augmentations augs) throws XNIException { EntityReference entityRef = fDocument.createEntityReference(name); fCurrentNode.appendChild(entityRef); fCurrentNode = entityRef; } // startGeneralEntity(String,XMLResourceIdentifier,String,Augmentations)
@Override public void startEntity(String name) throws SAXException { EntityReference entityReference = document.createEntityReference(name); node = node.appendChild(entityReference); }
/** Start general entity. */ @Override public void startGeneralEntity(String name, XMLResourceIdentifier id, String encoding, Augmentations augs) throws XNIException { final EntityReference entityRef = fDocument.createEntityReference(name); fCurrentNode.appendChild(entityRef); fCurrentNode = entityRef; }
/** * Start general entity. */ public void startGeneralEntity(String name, XMLResourceIdentifier id, String encoding, Augmentations augs) throws XNIException { EntityReference entityRef = fDocument.createEntityReference(name); fCurrentNode.appendChild(entityRef); fCurrentNode = entityRef; } // startGeneralEntity(String,XMLResourceIdentifier,String,Augmentations)
/** Start general entity. */ public void startGeneralEntity(String name, XMLResourceIdentifier id, String encoding, Augmentations augs) throws XNIException { EntityReference entityRef = fDocument.createEntityReference(name); fCurrentNode.appendChild(entityRef); fCurrentNode = entityRef; } // startGeneralEntity(String,XMLResourceIdentifier,String,Augmentations)
/** * Add an entity to a specified Element. * (eg <code>DomUtils.addEntity(element, "nbsp");</code>) * @param element the containing element * @param entity the entity to add */ public static void addEntity(Element element, String entity) { element.appendChild(element.getOwnerDocument().createEntityReference(entity)); }
/** * Receive notivication of a entityReference. * * @param name name of the entity reference */ public void entityReference(String name) throws org.xml.sax.SAXException { append(m_doc.createEntityReference(name)); }
/** * Receive notivication of a entityReference. * * @param name * name of the entity reference */ public void entityReference(String name) throws org.xml.sax.SAXException { append(m_doc.createEntityReference(name)); }
public void skippedEntity(String pName) throws SAXException { EntityReference entity = getDocument().createEntityReference(pName); currentNode.appendChild(entity); } }
/** * Receive notivication of a entityReference. * * @param name * name of the entity reference */ public void entityReference(final String name) throws SAXException { append(document.createEntityReference(name)); }
/** * Receive notivication of a entityReference. * * @param name name of the entity reference */ public void entityReference(String name) throws org.xml.sax.SAXException { append(m_doc.createEntityReference(name)); }
/** * Receive notivication of a entityReference. * * @param name name of the entity reference */ public void entityReference(String name) throws org.xml.sax.SAXException { append(m_doc.createEntityReference(name)); }
protected void appendDOMTree(org.w3c.dom.Document domDocument, org.w3c.dom.Node domCurrent, Entity entity) { org.w3c.dom.EntityReference domEntity = domDocument .createEntityReference(entity.getName()); domCurrent.appendChild(domEntity); }
/** * Receive notivication of a entityReference. * * @param name name of the entity reference */ public void entityReference(String name) throws org.xml.sax.SAXException { append(m_doc.createEntityReference(name)); }
protected void runTest() throws Throwable { Document document = dbf.newDocumentBuilder().newDocument(); EntityReference entref = document.createEntityReference("myentity"); assertEquals(Node.ENTITY_REFERENCE_NODE, entref.getNodeType()); assertEquals("myentity", entref.getNodeName()); assertNull(entref.getNodeValue()); assertSame(document, entref.getOwnerDocument()); } }