xml

XML node type issue

Hello everyone, I am new to XSLT and learning XML. I heard there are 4 types of XML nodes, element, text node, comments and instruction node. I want to learn more about them, their functions and their differences. Could anyone recommend me some good tutorials for this topic? EDIT 1: whether my below understanding of text node is corre...

Parse xml file while a tag is missing

I try to parse an xml file. The text which is in tags is parsed successfully (or it seems so) but I want to output as the text which is not contained in some tags and the following program just ignores it. from xml.etree.ElementTree import XMLTreeBuilder class HtmlLatex: # The target object of the parser out = '...

validating xml file with dtd using jsp

Is there any way to validate an XML file with its DTD, using a JSP in Eclipse? If so, how can we do it? ...

Which is faster/easier to work with in an iPhone app: XML or JSON?

I am starting to create an iPhone application that will interact with a public API. My question is, which will be faster and/or easier to work with: XML or JSON? ...

What is the proper way to prepare XML data for serialization/deserialization.

<?xml version="1.0" encoding="utf-8" ?> <Hero> <Legion> <Andromeda> <SpellOne> <Name>Comet</Name> <Icon>Images/Spell/Andromeda/Spell1.gif</Icon> <Action>Target Unit</Action> <Description>Andromeda rips a comet from her dimension to hurl at an enemy, damaging and stunning them.</Description>...

Hidden Features of XML, DTD and XML Schema

With all of the other hidden features questions on SO, how can we forget XML? What are the hidden features of XML, DTD and XML Schema? ...

How to launch my web page in a web hosting domain?

Am very to new to web development. I have the web pages; web pages are developed in html, CSS Style sheet. For Example I have the ftp domain or crystal.com for hosting my web page For hosting my web pages, I have to create setup file for hosting my web page or simply post my html files. Can any one tell the procedure, what are the ...

XML messages over a TCP/IP socket

I am using C and want to know are XML messages are preferable over text messages as far as communication over a socket connection is concerned? Is there any other good option available rather to go for XML? Which is the best parser(or parsing option) available for parsing XML in C? Is there any standard library which comes with C and ...

Problems loading XML file with swf on my site?

I created a swf that I have on my website. The swf loads xml data. it works fine when I test it locally. But when I upload it to the server, I get a IOErrorEvent(). Why is this occurring? Here is the code for the XML file: <?xml version="1.0" encode="UTF-8"?> <menu> <col>///~~~~~~~~~~~~~~~~~~~~~~~ <tile> ///The "thumb" tag should indi...

client server communication using xml

Hi, I need to do xml based client server interaction. As per my knowledge, steps in client server communication through xml may include: 1. client prepares the xml 2. transmittal of the xml 3. server processes the xml client can send request to the server through xml document. The XML parser at the server will parse the xml file...

Error in XML, Find and Replace won't fix...

I made a huge error in a gigantic XML file. <item1> <item2> <item1> //.. tons of stuff... </item1> </item2> </item1> I need to replace the outer item1 with something else. But find and replace isn't working because of the matching inner item1. I've tried searching by multiple pieces of information,...

Saving data in SQL Server, the right approach

We have internal application used to publish articles, using SQL Server 2005. For the task I need to save list of tags when a user publishes a post. Should I make a separate table For Tags and update the ID column for a TAG with the id of the post that lists it, using XML column like TABLE_TAGS TAG_NAME varchar, ARTICLE_IDS XML OR ...

When serializing/deserializing XML data, do the XML elements and the class attributes have the same name?

For example: Here's a simple class. class Hero { public string faction; public string name; public HeroType herotype; } And here's the XML counterpart. <Hero> <android> <Faction>evil</Faction> <nombre>android</nombre> </android> </Hero> Do the attributes have to be exactly the same in order to s...

How can I filter different things according to a class attribute?

Here's the gist of what I'm going to do. Heres' my hero class: namespace TomeOfNewerth_WPF_ { public enum HeroType { Agility, Strength, Intelligence } public enum AttackType { Melee, Ranged, } class Hero { public string Faction; public string Name...

XML with LINQ without XPath

I have an object structure I have deserialized from XML - but I'm wanting to use it with LINQ. Is there any way I can add this capability to a normal object structure without the hassle of XPath stuff? ...

XSLT for creating template XML

Hi, I am out of my depth regarding xsl transforms for generating a sample XML file. Basically the process is I am trying to generate a large and complex XML template file from an application generated XSD. I have used XMLSpy to generate a sample XML file from the XSD my next step is to convert the values to the required values. exampl...

Is there any XTL DirectShow® Editing Services visual editor?

Is there any XTL Microsoft® DirectShow® Editing Services visual editor? or we shall write all that xml by hand? BTW: Microsoft® DirectShow® Editing Services supports an Extensible Markup Language (XML) persistence format, called XTL. ...

How can I ignore a bad xmlns namespace with Perl's LibXML?

I have an XML document that references a namespace that is no available: <microplateDoc xmlns="http://moleculardevices.com/microplateML"&gt; ...my data is here... </microplateDoc> I have a script that reads it fine, but only when I delete the two above tags, otherwise it reads it all screwed up. Is it ok just to ignore it? I'm thin...

Xstream: Implicitly ignoring all fields

How do I tell Xstream to serialize only fields which are annotated explicitly and ignore the rest? I am trying to serialize a hibernate persistent object and all proxy related fields get serialized which I don’t want in my xml. e.g. <createdBy class="com..domain.Users " reference="../../values/createdBy"/> is not something I wan...

How can I extract attributes from repeated tags in XML using Perl?

I am trying to parse a set of XML files. The XML file may have single flag tag or multiple flag tags: <job> <flag exit="0">aaa</flag> </job> OR <job> <flag exit="0">aaa</flag> <flag exit="1">bbb</flag> <flag exit="2">ccc</flag> </job> But determining this "flag" count has to be determined on the fly. What's the best way to ...