I am responding to an AJAX call by sending it an XML document through PHP echos. In order to form this XML document, I loop through the records of a database. The problem is that the database includes records that have '<' symbols in them. So naturally, the browser throws an error at that particular spot. How can this be fixed?
...
Java, Xerces 2.9.1
insertHere.setAttributeNS(XMLConstants.XML_NS_URI, "xml:space", "preserve");
and
insertHere.setAttributeNS(XMLConstants.XML_NS_URI, "space", "preserve")
both end up with an attribute of just space='preserve', no XML prefix.
insertHere.setAttribute( "xml:space", "preserve")
works, but it seems somehow wrong. A...
I'm using eclipse(galileo) and struts2 framework and tiles.
It seems that modifying xml files(struts.xml, tiles-config.xml, etc) is not affected until I restart the server.
It is very annoying and it takes more time. Is there any way not to restart?
...
Is there a way to generate xml tags with dashes in builer?
Imagine I want to generate the following XML:
<ninja-programmer>
Jon Skeet
</ninja-programmer>
I am not able to do it like:
require 'builder'
data = ''
x = Builder::XmlMarkup.new(:target => data, :indent => 2)
x.instruct!
x.ninja-programmer "Jon Skeet"
That would confu...
That title is quite a mouthful. Let me try to be as clear as I can...
I have a WCF REST Service written in .NET 4 that uses the entity framework to pull some data from SQL Server into a list of objects. The objects are then returned as XML to the client. The problem is that the XML have references to each other due to my model's rela...
I'm doing some research with large XML based datasets, and I wanted a simple way to get my head around the (vague and almost obfuscated) data structures but graphing the xml nodes.
I was going to write a perl script that would re-parse the xml into a GraphViz Dot compatible file, but before I dive into that; anyone got any better ideas?...
I load an XML document:
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("MyFile.xml");
And also create a new document:
XmlDocument xmlDocSettings = new XmlDocument();
XmlNode xmlDecl = xmlDocSettings.CreateNode(XmlNodeType.XmlDeclaration, "", "");
xmlDocSettings.AppendChild(xmlDecl);
XmlElement root = xmlDocSettings.CreateElement...
Guys I'm new to xml in Java.
I have the following task. I need to parse some xml files (specificallyh xcb-proto [X11]) to generate the equivalent request protocol in java. There is already a well defined xsd and the respective xml for the protocol. What is the best and easiest approach/parser to solve this?
Example of existant xml cont...
How do I access the multiple xmlns declarations at the root element of an XML tree? For example:
import xml.etree.cElementTree as ET
data = """<root
xmlns:one="http://www.first.uri/here/"
xmlns:two="http://www.second.uri/here/">
...all other child elements here...
</root>"""
tree = ET.f...
So i have this XML structure:
<fields>
<field name="agent_description" label="Agent Description" size="area" />
<field name="agent_phone" label="Agent Phone" size="field" />
<field name="agent_email" label="Agent EMail" size="field" />
<field name="agent_listing_url" label="Agent Listing" size="field" />
<field name=...
So in keeping with my last question, I'm working on scraping the friends feed from Twitter. I followed a tutorial to get this script written, pretty much step by step, so I'm not really sure what is wrong with it, and I'm not seeing any error messages. I've never really used cURL before save from the shell, and I'm extremely new to PHP s...
I'm having trouble figuring out why the RSS feed appears blank for one page but not another.
Both have similar content, but for one the feed doesn't show up, but the source is viewable.
Working: http://craze.cc/popular/rss
Not working: http://craze.cc/new/rss
I tried using a validator, still confused on what is going on.
Help please...
I have a TextView and I want to add a bullet symbol in my text through XML. Is it possible?
Pleas help
...
What's a good XML editor in Linux for people new to XML?
...
Hi guys suddenly I have no experience with java and html parsing and I really need it...(possibly from http://www.uefa.com/teamsandplayers/teams/club=52280/domestic/index.html)
I want a simple way to convert an html website to xml document(fetch,convert,parse) or an easy alternative way to do it...
ps:if you know any alternative FREE r...
Hey Everyone
I'm just putting together a simple web application in Ruby on Rails 3 RC and I'm a bit stumped with the forgery protection. I plan to have a web interface as well as allow XML API calls from an iPhone app. I'm currently testing this with a REST request generator but am getting InvalidAuthenticityToken errors.
Firstly, I t...
Until last night, I've been parsing XML using a variety of libraries in .NET -- XmlDocument and XDocument mostly. I'm not sure why I didn't look into this sooner, but it occurred to me that there must be something available in .NET that gives you class serialization / deserialization for free, and of course that comes in the form of the...
Hello,
I have a little exercise. I need to load data from the DB (XML file) into a dataset or something else,
and use queries. what is the simplest way to do it? I want to use a Dataset GUI to make a queries.
thanks,
Dani.
...
I have a friend who is writing a 400-page book in Microsoft Word 2007.
Throughout the book he has 200 stories each which consist of numerous paragraphs.
When he is finished writing the book, he wants to copy the text of each story that is embedded in his Word document into a database table such as:
Title, varchar(200)
Description, tex...
Below are my table structures; using those tables I want to create XML file.
CREATE TABLE [dbo].[Security_Module_Menu](
[Client_Company_ID] [smallint] NOT NULL,
[Module_ID] [tinyint] NOT NULL,Module_ID,Menu_ID,Reference_Menu_ID
[Menu_ID] [int] NOT NULL,
[Reference_Menu_ID] [int] NULL,
[Menu_Name] [nvarchar](50) NULL,...