xml

Transform with XSLT a XML list into a comma-separated with 'and' for the last entries and a final .

I have a list like: <members> <name>Lorem Ipsum</name> <name>Lorem Ipsum</name> <name>Lorem Ipsum</name> <name>Lorem Ipsum</name> </members> That I need to conver to: Lorem Ipsum, Lorem Ipsum, Lorem Ipsum and Lorem Ipsum. How this can be done? I suppose that in XSLT 1.0 I will need to loop for-each, but how to apply...

Merging two xml files in C# without appending and without deleting anything (example given)

So say I have one xml file such as this: <shapes> <shape>shape1</shape> </shapes> And another xml file like this: <parentNode> <shapes> <shape>shape 2</shape> </shapes> </parentnode> I would like the output to be: <parentNode> <shapes> <shape>shape1</shape> <shape>shape 2</shape> </shape...

VB.NET - Using an XML file to syntax highlight in a custom code editor?

Hey Overflow, I'm creating a code editor for a sub-version of Python in Visual Studio 2010. (.NETFW 4.0 Client) The thing is, I can't figure out how to write the XML file and then how to parse text in a RTB based on the info from said XML file... Just now I'm resorting to locking the control and filtering through the whole RTB to check...

How to import a Schema (XSD) which is in a jar file into another Schema(XSD)

I have some common types which are defined in an xsd file which is then later bundled as a jar file. I have this jar file in my classpath and I want to include this xsd into another xsd to use those types. How to refer the schema in a jar file? Also I want to create JAXB objects from the new schema is it possible. Also I want to use this...

java api for XML - dom processing with disk backup

I have a large XML document (50G+) to process. Loading this to normal dom (saxon) require more than 160G. Not that much RAM or swap space. Is there any library that provides h a disk based DOM tree? Any thing for Java? ...

VB6 RSS Example?

i need an example - how to parse RSS feeds by under Visual Basic 6... help please) ...

How to modify ToggleButton behaviour with or without xml in Android

Hi, I've to do a memo card game in android for my project. As for now i'm at the stage where i try to figure out the basic shape of my app. I've read some tutorials, but i can;t figure out how to modify a lot of dynamically created buttons (ie. in 'for' loop), from xml, or even from the code. To make my question clear here's the code i ...

How to change values of some elements and attributes in an XML file [Java]?

I'm reading an XML file with a SAX-parser (this part can be changed it there's a good reason for it). When I find necessary properties I need to change their values and save the resulting XML-file as a new file. How can I do that? ...

Transforming XML so it can be read with DataSet.ReadXML

I have been given an XML document in a rather strange format and I need to load it into a DataSet, but unsurprisingly I get an error when I try to do so. I can see how I could transform the document into something that would work, but I'm kinda going around in circles with the XSLT stuff... The document looks something like this: <map>...

RESTful MVC Web Service and AspBufferLimit

I have a RESTful web service built on the MVC framework (ala Aaron Skonnard) where methods may return > 4MB of XHTML. I don't want to bump up against the 4MB ASPBufferLimit, and so I'm planning to use the Controller.File() method as shown below -- note the "text/html" trick. In the past, I've written a loop to pump large streams out us...

How to remove input method from android's TextView context menu

I have a context menu on a TextView representing a user name in my app. When the context menu appears I want to have certain options such as "View Statistics" etc. The context menu is appearing fine and everything is working great except it's adding "Input method" to the context menu and I do not want it there. It's irrelevant to what th...

C# connect to URL which gives a xml document

How can I in C# call a URL which gives me a xml file, and then process that xml file for example for parsing. ...

Can I use custom XML parts in Word 2010 VBA?

I need to save some custom infos into a word 2010 document, I can use hidden texts, bookmarks, custom doc properties, content controls, etc, but all of these methods cannot work with large data very well, and these methods are fragile and are't very flexible. So I want to use custom XML parts, which can hold large data, and are flexible....

No linebreak after tags in tidy

HI, I have the following input: <p>Hi <span>you</span></p> I'd like to treat this as XML. I run Tidy on the cmd-line with the following options: input-xml: yes output-xml: yes indent: no My output is this: <p>Hi <span>you</span></p> However I'd like tidy to not pretty-print the xml. I'd like it to respect all white space, an...

Grails: Saving nested objects using XML data binding.

I'm creating a REST service in Grails to accept data from a python script. The python script generates an XML representation of the object graph and submits it to the controller. Things work great for my flat objects, but I can't figure out how to handle the case where a domain object contains a Set of children objects. For unrelated ...

Coldfusion - XML Pretty Print

There are a lot of ways to pretty print XML, but I have yet to find one using a ColdFusion function. This is a common question, but again I want to do this within ColdFusion. ...

Book for Learning XML and Java

I have a very basic knowledge regarding XML. But now I want to dig more related to this. I am using Java so I would like to ask for advise on what particular book is useful in my case. Can you share with me the best possible book that I could purchase. I tried to look at amazon but I got discouraged in some of the reviews that these ...

Merging sequences of elements in XSLT

I've got wads of autogenerated HTML doing stupid things like this: <p>Hey it's <em>italic</em><em>italic</em>!</p> And I'd like to mash that down to: <p>Hey it's <em>italicitalic</em>!</p> My first attempt was along these lines... <xsl:template match="em/preceding::em"> <xsl:value-of select="$OPEN_EM"/> <xsl:apply-templa...

JAXB XJC compiler disregarding mixed=true on XML Schema documents

XJC seems to be completely ignoring mixed="true" on my XML Schema elements thereby not allowing me to extract text content. From the sample XML below, I need to be able to extract "Title Text." Without mixed="true" being recognized, no accessor is created nor is it unmarshalled from XML: <?xml version="1.0" encoding="UTF-8"?> <title xml...

parse a xml in c++

Hello! i want to parse a xml like that. My output need to be a code in c or c++ who make the transformation of each letter in phoneme. I introduce a word at input and my generated code need tu pe transformed based on the rules from xml. Any sugestion for begening pls... <?xml version="1.0" encoding="UTF-8"?> <rules> <define_groups...