Why i'm getting this error
Using
org.apache.xerces.parsers.SAXParser
Exception
net.sf.saxon.trans.XPathException:
org.xml.sax.SAXParseException: The
element type "head" must be terminated
by the matching end-tag "".
org.xml.sax.SAXParseException: The
element type "head" must be terminated
by the matching end-tag ""...
Hi everyone.
I'm writing a dummy "MyAgenda" application in Java which has to allow maintenance of the XML file that stores the data.
Say I have a XML file like:
<myagenda>
<contact>
<name>Matthew Blake</name>
<phone>12345678</phone>
</contact>
</myagenda>
How can I add a new <contact> by using XSLT ?
Thanks.
...
How to group xml element values
XDocument.Descandants("Customer").GroupBy(c=>c.Element("ServiceId"));
This is not working.
Is there any way to group this?
...
I need to make a script which auto-increments an xml sitemap (for use by search engines) every time a new ad is created on my site (classifieds site using php and mysql).
I have got stuck at how to auto-increment the xml site map. Every site map can contain a maximum of 50000 records of URLS.
Besides, whenever a user deletes their ad (...
Ckeck out http://www.blocket.se/goteborg?ca=15
Look at the first ad.
Copy the headline, and paste it into google, and also write 'blocket' after the headline in google, now search.
You will see it finds the ad right away.
How come?
Does googles crawlers really update their index that fast?
Or is it just because you entered that sea...
Hello guys,
I am trying to get this code work for about 2 hours =( I am new to C# and don't know all the .NET library classes.
The target is to populate XML data to comboBox
DataSet dataSet = new DataSet();
DataTable dataTable = new DataTable("table1");
dataTable.Columns.Add("col1", typeof(string));
dataSet.Tables.Add(dataTable);
Str...
Hi,
I have an application that makes hundreds of calls to a third party web service. Each time a call is made the response is parsed into XElement and a series of operations are performed on it. The processed XElement is then added to an XDocument that is later saved to disk.
Occasionally a response will include some bad data. In this...
Is there some library or helper to produce SVG graphics with Ruby? I googled a bit and found many, but all seem to be dusty and very incomplete… Does anyone know about some nice, reliable alternative?
...
Are there any API/solution to generate PDF report from XML file data and definition.
For example the XML definition/data could be:
<pdf>
<paragraph font="Arial">Title of report</paragraph>
</pdf>
converting HTML to PDF will also a good solution I feel.
Currently we write Java code using iText API. I want to externalize the code s...
I have written an autogenerating sitemap code below, it is called every 12 hours.
It looks through the mysql database, and then generates the input into the xml file for every row it finds in the mysql table.
I am not the best PHP coder, so I hope you guys can help me improve this below.
It works and does the job, but having over 400th...
I am building a small front-end for a television client. I know the basic database structure but do not want to spend manually inserting all the channel names and show names and timings into the database. Are there any sample databases that I can just use? For instance, I am looking for a database containing tv related information with a...
I'm trying to use DOMParser, or XPath to get a XML fragment out of a document. A element with either DOMParser or document.evaluate returns an element with a null nodeValue, how do I get the xml fragment back as a string? Here's the example that I can't get to work in WebKit.
XML:
<fetch version="1.0" output-format="xml-platform" mappi...
I have program that needs to parse XML that contains character entities. The program itself doesn't need to have them resolved, and the list of them is large and will change, so I want to avoid explicit support for these entities if I can.
Here's a simple example:
<?xml version="1.0" encoding="UTF-8"?>
<xml>Hello there &something;</xm...
I'm constructing DTD which has 'fuel_system' element.I want to restrict the text between tag.It must be only carbureted or fuel-injected.How can I do this ? I don't mention something like this = > attribute type (carbureted,fuel-injected) , because I want to force this rule in tags not the attribute of fuel_system..
...
Hi! I want to find out the difference between two Dates (in terms of minutes) appearing in two different elements as data in my XML file using XSLT. I can't use functions for this, as I am using visual studio 2008, in version 1.0 XSLT functions are not supported ..
Ex- 11/12/2009 12:00 AM 12/01/2010 12:00 PM And also I have to see that...
Hi!
Total newbie. Thanks in advance. Here goes:
I'm trying to transform an XML document using an XSL stylesheet, and the XSL stylesheet links to a CSS file. When I open the XML file from my computer in a browser (Chrome), the data is displayed properly following the XSL and CSS files. I also have javascript math functions inside the X...
I have a collection of stories in an XML format. I would like to parse the file and return each story as either hash or Ruby object, so that I can further manipulate the data within a Ruby script.
Does Nokogiri support this, or is there a better tool/library to use?
The XML document has the following structure, returned via Pivotal Tra...
<?php
$xml = <<< AAA
<test>c đưa lên 1 -> 10 k</test>
AAA;
$p = xml_parser_create();
xml_parse_into_struct($p, $xml, $vals, $index);
xml_parser_free($p);
print_r($vals);
I can get differnt result why?
In my PC the result is
Array
(
[0] => Array
(
[tag] => TEST
[type] => complete
[lev...
I'm writing a new Java 6 Swing application and want to have a "Show tips at start-up" feature. I've done this before, but never with localization in mind.
In the past, my tips dialog used an XML file to hold the tips, but I'm afraid this will make things difficult when it comes time to translate these tips into different languages. I'v...
In Java for XML marshalling/unmarshalling one can use JAXB, JIBX, CASTOR, ADB etc.
But out of these which is most generic & commonly used? Or is there any other utility available?
...