Questions tagged [domdocument]

DOMDocument refers to a class encapsulating the DOM (Document Object Model). Various languages and technologies use the name DOMDocument for this purpose, for example PHP, COM, C++, and ActiveX

If you are thinking of using this tag, then you might be looking for the Document Object Model tag:

In PHP, for example, the DOMDocument class represents an entire HTML or XML document and serves as the root of the document tree.

2749 questions
0
votes
3 answers

print html table using php dom document

Need help, I would like to print this html code in our web page using php domdocument, but struggling I have also write the code with below. Could you please help me.
Bajrang
  • 8,361
  • 4
  • 27
  • 40
0
votes
1 answer

How to create a signature overload for a method of the document object in TypeScript

I'm working with TypeScript without any component framework/library like React or Vue, and I'm creating my DOM components using the document.createElement method, but since I know, this method only allows you to pass the name of the element to be…
0
votes
1 answer

Is there any requirement for DOM used to create a DominoTree, such as being namespaceaware or created with level 2 dom builder?

We are adding code to convert a DOM to Domino before invoking saxon library to process xquery expression, which involves constructing a xml document as output. Following exception is seen, for DOM created using certain DOM…
jmashalk
  • 21
  • 2
0
votes
0 answers

Any ways to using well PHP DOMDocument class?

I thought DOMDocument would be of great help to working with XML, so I made a new class by extending the DOMDocument class. It was useful for generating the XML document I wanted as a method chain, but on the contrary, reading the XML string and…
GatesPlan
  • 465
  • 1
  • 4
  • 17
0
votes
0 answers

Why does DOMDocument::load only load certain RSS files? Is its use preferable over cURL?

I'm finishing a function to load RSS/XML in PHP using DOMDocument. In most cases it works perfectly, however with some RSS sources it does not. I also have a general file_get_contents-style function utilizing cURL for general web requests that also…
John Smith
  • 490
  • 2
  • 11
0
votes
1 answer

XML schema php validation decimal number error

I have this schema:
dfilkovi
  • 3,051
  • 7
  • 39
  • 51
0
votes
0 answers

Find the caret position in a contenteditable div

I'm using this code right now to find the caret position getCaretCharacterOffsetWithin(element) { let caretOffset = 0; let doc = element.ownerDocument || element.document; let win = doc.defaultView || doc.parentWindow; let sel; …
Steve Chacko
  • 95
  • 11
0
votes
1 answer

PHP DOMDocument always yields an empty object

I am trying to load a simple HTML string, (which regardless of HTML-tidy) will not allow DOMDocument access. Here is the instantiation $doc = new DOMDocument(/*'1.0', 'utf-8'*/); $doc->recover = true; $doc->strictErrorChecking = false; …
Lorenz Lo Sauer
  • 23,698
  • 16
  • 85
  • 87
0
votes
0 answers

Chrome extension - Getting textbox value after api is called

I'm trying to create a simple chrome extension, to change the uploaded youtube title text to upper case or lowercase according to the selection from user. App flow: https://www.youtube.com/upload -> Upload Video -> Prompt appears to provide video…
0
votes
2 answers

why does a