ایکس ایم ال ڈوم Document آئی وی جی
- پچھلے پیج DOM کمرشن
- بعد کا پیج DOM DocumentType
The Document object represents the entire XML document.
Document object
The Document object is the root of a document tree, which can provide us with the initial (or top-level) access point to the document data.
Used for element nodes, text nodes, comments, processing instructions, etc., which cannot exist outside the document. The document object also provides methods to create these objects. The Node object provides an ownerDocument property, which can associate them with the Document in which they were created.
IE: Internet Explorer: F: Firefox: O: Opera: W3C: World Wide Web Consortium (Internet Standards)
Properties of the Document object
خصوصیات | وصف | آئی ای | ایف | او | وائس |
---|---|---|---|---|---|
async | specifies whether the download of the XML file should be processed synchronously. | 5 | 1.5 | 9 | نہ |
childNodes | return the node list of the child nodes of the document. | 5 | 1 | 9 | ہاں |
doctype | return the document type declaration (DTD) related to the document. | 6 | 1 | 9 | ہاں |
documentElement | return the root node of the document. | 5 | 1 | 9 | ہاں |
documentURI | set or return the location of the document. | نہ | 1 | 9 | ہاں |
domConfig | return the configuration used when normalizeDocument() is called. | نہ | ہاں | ||
firstChild | return the first child node of the document. | 5 | 1 | 9 | ہاں |
implementation | return the DOMImplementation object that handles the document. | نہ | 1 | 9 | ہاں |
inputEncoding | return the encoding method used for the document (when parsing). | نہ | 1 | نہ | ہاں |
lastChild | return the last child node of the document. | 5 | 1 | 9 | ہاں |
nodeName | return the name of the node based on its type. | 5 | 1 | 9 | ہاں |
nodeType | return the node type of the node. | 5 | 1 | 9 | ہاں |
nodeValue | set or return the value of the node according to its type. | 5 | 1 | 9 | ہاں |
strictErrorChecking | set or return whether to perform error checking forcibly. | نہ | 1 | نہ | ہاں |
text | return the text of the node and its descendants (only for IE). | 5 | نہ | نہ | نہ |
xml | return the XML of the node and its descendants (only for IE). | 5 | نہ | نہ | نہ |
xmlEncoding | return the encoding method of the document. | نہ | 1 | نہ | ہاں |
xmlStandalone | set or return whether the document is standalone. | نہ | 1 | نہ | ہاں |
xmlVersion | XML کی ورژن کو ساتھ لایا یا واپس لایا جاتا ہے۔ | نہ | 1 | نہ | ہاں |
Document نمائش کے طریقہ کار
خصوصیات | وصف | آئی ای | ایف | او | وائس |
---|---|---|---|---|---|
adoptNode(sourcenode) | دوسرے سند سے ایک نود کو اس سند میں منتقل کرنا اور منتقل کردہ نود کو واپس لایا جاتا ہے。 | نہ | ہاں | ||
createAttribute(name) | نئی نمائش بنانی جو معین نام کا حامل ہو اور نئی Attr نمائش واپس لایا جاتا ہے。 | 6 | 1 | 9 | ہاں |
createAttributeNS(uri,name) | نئی نمائش بنانی جو معین نام اور نیم نام کا حامل ہو اور نئی Attr نمائش واپس لایا جاتا ہے。 | 9 | ہاں | ||
createCDATASection() | CDATA شق نود بنانا。 | 5 | 1 | 9 | ہاں |
createComment() | نوکری تیار کرنا。 | 6 | 1 | 9 | ہاں |
createDocumentFragment() | خالی DocumentFragment نمائش، اور اس نمائش کو واپس لایا جاتا ہے。 | 5 | 1 | 9 | ہاں |
createElement() | عناصر نود بنانا。 | 5 | 1 | 9 | ہاں |
createElementNS() | معین نیم نام کا عناصر نود بنانا。 | نہ | 1 | 9 | ہاں |
createEvent() | نئے Event نمائش کو بنانا。 | ہاں | |||
createEntityReference(name) | EntityReference نمائش بنانے اور اس نمائش کو واپس لایا جاتا ہے。 | 5 | نہ | ہاں | |
createExpression() | XPath ایکسیپریشن کو بنانا جو بعد میں محاسبه کیا جائے گا。 | ہاں | |||
createProcessingInstruction() | ProcessingInstruction نمائش بنانے اور اس نمائش کو واپس لایا جاتا ہے。 | 5 | 9 | ہاں | |
createRange() | Range نمائش بنانے اور اس نمائش کو واپس لایا جاتا ہے。 | نہ | ہاں | ||
evaluate() | XPath ایکسیپریشن کا محاسبه کرنا。 | نہ | 1 | 9 | ہاں |
createTextNode() | نوکری نود بنانا。 | 5 | 1 | 9 | ہاں |
getElementById() | معین یونی ک کا حامل عناصر کو تلاش کرنا。 | 5 | 1 | 9 | ہاں |
getElementsByTagName() | تمام نودوں کو واپس لایا جاتا ہے جو معین نام کا حامل ہیں。 | 5 | 1 | 9 | ہاں |
getElementsByTagNameNS() | تمام نودوں کو واپس لایا جاتا ہے جو معین نام اور نیم نام کا حامل ہیں。 | نہ | 1 | 9 | ہاں |
importNode() | ایک نود کو دوسرے سند سے اس سند میں کوپی کیا جاتا ہے تاکہ اس کا استعمال کیا جاسکے。 | 9 | ہاں | ||
loadXML() | XML کا لفظ جائز فراہم کرکے سند تشکیل دینا。 | ||||
normalizeDocument() | نہ | ہاں | |||
renameNode() | عنصر یا نمائش کا نود نام دینا یا تغیر دینا。 | نہ | ہاں |
- پچھلے پیج DOM کمرشن
- بعد کا پیج DOM DocumentType