Hi All,
I am trying to load xml in php
$doc = new DOMDocument();
$doc->load("LoginVal.xml");
I am getting an error as
Warning: domdocument::domdocument() expects at least 1 parameter, 0 given in C:\Program Files\Apache Group\Apache2\htdocs\hello.php on line 5
Fatal error: Call to undefined method domdocument::load() in C:\P...
1: Is there any way to covert the xml data into Excel workSheet?
2: Also from database (sql server 2005 ) to an Excel worksheet?
...
I know this might be a dumb question. I'm trying to use this xml parser
http://nokogiri.rubyforge.org/nokogiri/Nokogiri.html
I've put the code below in a controller in a bringRSS method(?), and it works fine in IRB. But how do I get values for puts link.content into my views
def bringRSS
require 'nokogiri'
require 'open-uri'
...
Hi,
i have the following xml, which is the result of runnig xslt:
<?xml version="1.0" encoding="UTF-8"?>
<toc xmlns:fn="http://www.w3.org/2004/07/xpath-functions" label="Sample Table of Contents">
<topic label="Title1" href="Ref1#ref1">
<topic label="Title 2" href="Ref2#ref2">
<topic label="Title3" href="Ref3#ref3"/>
...
I need an application that goes through an xml file, changes some attribute values and adds other attributes. I know I can do this with XmlDocument and XmlWriter. However, I don't want to change the spacing of the document. Is there any way to do this? Or, will I have to parse the file myself?
...
I have a webpage that has a roster for World of Warcraft on it. I would like to know how do I create summary statistics for number of each Class, number of each Race, and number of each Gender. Can someone please help. The data is read in from an XML page into an array. Thank you.
...
I have been investigating swfmill and ran it against some of my AS3 SWFs, I get
<UnknownTag id="0x52">
<data>...</data>
</UnknownTag>
and
UnknownTag id="0x4C">
<data>...</data>
</UnknownTag>
These lines are most likely contain the data I am looking for, but the data is unreadable. Does anyone know of another way to f...
I am having an issue serializing a c# class to an XML file that has a base class... here is a simple example:
namespace Domain
{
[Serializable]
public class ClassA
{
public virtual int MyProperty
{
get; set;
}
}
}
namespace Derived
{
public class ClassA : Domain.ClassA
{
public overrid...
This is a followup to an answer on a previous question I had about XSLT.
To recap, I didn't realize that without EXSLT, XSLT wouldn't let you dynamically create an xpath expression with string values. One of the suggested workarounds was
to query the input document's DOM before you execute the transform, and pass the node-set into...
Suppose I have this structure:
<one>
<two>
<three>3</three>
</two>
<two>
<three>4</three>
</two>
<two>
<three>3</three>
</two>
</one>
Is there anyway of getting to this :
<one>
<two>
<three>3</three>
</two>
<two>
<three>4</three>
</two>
</one>
using Ruby's libraries? I managed to...
Hi,
I need to validate XML against XSD and so what are free XML Validator available out there that could be useful for my task.
Thanks.
...
Hi,
I have student.xml file and am parsing this file using SAX Parser and now I need to store data into MySQL Database and so what approach is recommended.
Code:
package sax;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.Attributes;
import org.xml.sax.SAXExceptio...
I want to send my RSS/Atom feeds with the correct Content-type header, can I do this without access to PHP or any other server-side language? The goal is for the browser to treat the file as a feed and not just a plain XML file.
...
I'm trying to create an Excel XML that I want to store in an XML Field in SQL Server 2005. I have gotten this far:
WITH XMLNAMESPACES (
'urn:schemas-microsoft-com:office:spreadsheet' as "s",
'urn:schemas-microsoft-com:office:office' as "o",
'urn:schemas-microsoft-com:office:excel' as "x"
)
select 'Order' as "@s:Name",
(
selec...
Two questions:
How can I import a file from a web address, without a form?
Example: Organisation.import(:from => 'http://wufoo.com/report.csv')
How can I use xml builder without pulling from the db?
More Info
My company uses wufoo for web forms. The data from wufoo is exported as csv files. To get the data into my company's cms, it...
How can I parse an XML document like this:
<feed>
<item>
<element-name>Element value</element-name>
</item>
</feed>
If I try the following, it doesn't work:
$xmlObject = simplexml_load_string($xmlString);
foreach($xmlObject->item as $item) {
$elementName= $item->element-name; // Obviously doesn't work.
}
I've tried:
$...
I need to decide on which one to use. My case is pretty simple. I need to convert a simple POJO/Bean to XML, and then back. Nothing special.
One thing I am looking for is it should include the parent properties as well. Best would be if it can work on super type, which can be just a marker interface.
If anyone can compare these two wi...
Just getting started with Ruby and have a newbie question re parsing XML. I'm trying REXML (yes, I know hpricot and others exist, but I am starting with REXML to learn.) The problem is how to iteratively proceed through a XML doc like this:
<?xml version="1.0" ?>
<bars>
<bar>
<id>29</id>
<foo>Something</foo>
</bar>
...
Is there any external library using which one can edit and save XML files for an iPhone application?
...
What's the easiest way to see the difference between two xml files using?
I looked into Hpricot and Nokogiri but couldn't find any good comparison methods. I've also looked into unix tools like diffxml, but would rather use something in ruby.
Anybody got any ideas?
...