Questions tagged [domparser]

A DOMParser can parse XML or HTML source stored in a string into a DOM Document.

The DOMParser is specifically used in Javascript to parse XML and HTML sources, however other languages may provide DOMParsers as well. In Javascript the DOMParser is specified in DOM Parsing and Serialization.

543 questions
-1
votes
3 answers

Fatala Error in Php with DOM

I have html dom parser and php script to store the table data to mysql. Now I'm getting Fatal Error on line 18. Below is the code of line 18 and is for finding table from HTML Web Page. Also I had applied this script to so many same webpages of…
-1
votes
1 answer

Simple html dom parser - two rows in one

I trying to insert a table in database, and I want to convert two rows in one array. Can anyone help me out? td<>3
-1
votes
1 answer

PHP DOM Parser my html ul code

I need help with my problem. I have this HTML code
-1
votes
1 answer

phpQuery for current file

I am just trying to get started with phpQuery DOM Parser but I don't understand how to load the current php file so that I can play with elements in this particular page. Say I have a php file about.php. It has a simple markup:
Raheel
  • 8,716
  • 9
  • 60
  • 102
-1
votes
1 answer

XML-Parsing from web on Android

Hello i try to read xml file from website but i have a problem. When i press a button i create object of class "DOMCreate" and next application is crashed. Below i put errors from logcat: 03-19 17:34:10.027 …
-1
votes
1 answer

Error at XML parsing using DOMParser

Here is my code snippet: public EpsXmlParser(String xmlAnswer) { DOMParser parser = new DOMParser(); try { InputSource is = new InputSource(); is.setCharacterStream(new StringReader(xmlAnswer)); …
user1112085
  • 29
  • 1
  • 6
-1
votes
2 answers

Deleting xml elements not working because of null value

I have created a delete method. My method has an index as argument that comes from a jlist position. The method will get the position from the jlist that the user have clicked and look up that element in the xml and delete it and all children. So…
Sembrano
  • 1,127
  • 4
  • 18
  • 28
-1
votes
2 answers

Parsing Complex XML File in Java using Dom Parser with heterogenous node structure

Please refer to the sample XML File Shawn Cool I want to display Tag "D"…
Shivam Panicker
  • 117
  • 1
  • 2
  • 9
-1
votes
1 answer

How to read Empty Data from the Xml tags using DOm Parser

I have a emergency requirment to read Xml data from xml file and store it in Text file.My issue is i can able to read Data from xml tag and store it in text file but i am mssing the tag values which are empty , even i want to read both data and…
user1158574
-2
votes
2 answers

How does one extract any text-content from HTML-code which does contain whitespace but neither tab nor line-break?

How to find and select in any html only text with spaces but without tabs and line breaks and not select the tags themselves. From the opposite, I succeeded, but as I looked above - no

text1

text2

text14

text3 …

dedtis
  • 9
-2
votes
2 answers

How to access a variable from another class? android java

Have spent hours trying to figure out why the "finalURL" variable in the "fetch" method cannot be read by the "Downloader" class? Would really appreciate any pointers.. It's a vocabulary improvement application, so it fetches XML data from a…
Jonathan Laliberte
  • 2,672
  • 4
  • 19
  • 44
-2
votes
3 answers

Can I prevent people programmatically fetch contents from my site?

Let's say I have a WordPress site with many Blog Post. I discovered there is someone out there copying the content of every page of my site and paste it on his own site. I believed he does not do it manually as the amount is huge. And I try to…
user2335065
  • 2,337
  • 3
  • 31
  • 54
-2
votes
2 answers

Echo last five divs

How would I use php to echo the last 5 divs? For example, this string:
user208829
  • 15
  • 7
-2
votes
1 answer

How to Parse XML file Using Dom Parsing?

My Problem is I am Using Dom Parsing to parse below xml file but this give me error of NullPointerException. Any Help Would be Appreciated. MainActivity.java public class MainActivity extends Activity { @Override public void onCreate(Bundle…
Dipak Keshariya
  • 22,193
  • 18
  • 76
  • 128
-3
votes
1 answer

best tool for parsing wikipeadia page and get needed informartion using php

I want to make one project that parse wiki pages and get needed information from it.i check some crawler and dom parser like nutch apache crawler and simple dom parser.Parsing wiki page with core php is very slow. But i cant get from which tools …
sandeep
  • 2,244
  • 1
  • 23
  • 38
1 2 3
36
37
12
4