Name
systemId: DOMString
Synopsis
The system identifier URL (URI) given for this entity, or
null
if none was
specified.
Java binding
public String getSystemId( );
Java example
// Get the Public ID or System ID for this entity Entity ndEnt = (Entity)doc.getDoctype( ).getEntities( ).getNamedItem("my_ entity"); String strURL = ndEnt.getPublicId( ); // if can't find the public URL if (strURL = = null) { // find the system URL strURL = ndEnt.getSystemId( ); }
Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.