xml

Using an XML element value in an XSLT predicate

Im not entirely sure if this is possible with XSLT and my lecturer had no idea what i was talking about so if anyone could help, thanks!!! I have an XML file with a list of authors, each with a unique id, and a list of books, each with a child element with an IDREF as its value. The file is laid out like this: <library> <authors> ...

display xml data

Hi Thanks for suggestion given in http://stackoverflow.com/questions/2327734/search-dataset-from-xml-file to use Xpath instead of dataset as in my previous post. I've successfully filtered my xml data (see previous post) using xpath but now I need to display data in a table. How do I do this? I would need to display certain values. How...

"Post" XML Data like HTML with Hidden Values using ContentType ="txt/html"

Hello people, I want to do the same that works previously on HTML but now via .NET Windows Forms. When I submit this HTML it works : <html> <head> </head> <body> <form name="TestForm" action="http://staging.csatravelprotection.com/ws/policyrequest" method="POST"> <input type="hidden" name="xmlrequeststring" value=" <quoterequest> <...

XSL transformation based on descendant values?

We have some software where we recieve XML data feeds that we translate to match our feed parser. I'm working on bringing in a new feed and I'm having a tough time splitting out one of the categories due to how the source feed comes in. I can't change our XML format or theirs, so I'm stuck with having to do this in nothing but XSL(T). ...

change extension obfuscate XML file contents

I have SlideShowPro, a Flash photo app that loads an XML file with the paths to the images. Now I don't want people to go sniff in the XML file to get to the images. I tried changing the file images.xml to spacer.gif and it seems to work fine. But I would like to know if I would run into any problems changing the extension. btw already...

Set a DTD using minidom in python.

I am trying to include a reference to a DTD in my XML doc using minidom. I am creating the document like: doc = Document() foo = doc.createElement('foo') doc.appendChild(foo) doc.toxml() This gives me: <?xml version="1.0" ?> <foo/> I need to get something like: <?xml version="1.0" ?> <!DOCTYPE something SYSTEM "http://www.path.t...

100% cpu usage in xml/xslt driven asp.net web app

The web app uses XML from a web service, which is then transformed to HTML using XSLT. The app uses a HttpModule to get the XML using AddOnPreRequestHandlerExecuteAsync. Classes Used: XmlDocument - stores the xml. XslCompiledTransform - stores the transform, is cached in Application. Asynchronous HttpWebRequest using BeginGetResponse/E...

Restrict values of an element to be unique within the elements under the same XPath

Consider this XML - <Root> <Foo> <UniqueValue>A100</UniqueValue> </Foo> <Foo> <UniqueValue>A101</UniqueValue> </Foo> <Foo> <UniqueValue>B102</UniqueValue> </Foo> <Foo> <UniqueValue>A101</UniqueValue> <!-- This should be an error --> </Foo> <Foo> <UniqueValue> A101 </UniqueValue> <!-- This should be ...

Populate on demand a TreeView with datas in an XML

Hi I have a large XML file (3000+ nodes) that I want to represent in a TreeView on ASP.NET. I cannot databind it to a XMLDataSource because loading the TreeView will then be way too slow (I never even waited long enough to see it finish...) So the solution for this would be to use the PopulateOnDemand property of the TreeNodes to load ...

Building a custom API--needing a logic check.

I am in the planning and early coding stages of writing my first full-fledged API for a large scale we application. I have used several APIs over the years but this is the first time I have been asked to construct something that will allow programmatic interaction on this level. I have done quite a bit of research looking for best prac...

Reverse engineering java objects into an xsd.

http://stackoverflow.com/questions/607141/what-is-jaxb-and-why-would-i-use-it/607248#607248 This fellow mentions some frameworks that allow you to go from java binding objects and re-create the schema that generated them. Does anyone know if this is possible with the Castor binding tool? We are using version .9 something. Someone mod...

How can I pass in an array as a value into a PHP soapclient request?

How can I pass in an array as a value into a PHP soapclient request? I have a soapclient instantiated and connected already. I then try to make a call to a webservice method that expects 3 parameters (string, string, hashmap). Here is what I expected to work below. But when viewing the xml output, the params node is empty. soapclient-...

Tools for debugging / checking XML Serialization

Are there any tools out there for helping to debug / check the xml serialization process? For instance, suppose an item is marked as internal instead of public. There is no compile time error message, nor a runtime error message. If you set a breakpoint and step into the serialization process, the item is just just skipped. In other ...

Loading an typed dataset from an XML document

I am unable to fill a typed dataset Using reader as New StringReader(My.Resources.sampledata) typedDataset.ReadXML(reader) 'typedDataset.WriteXML("c:\data.xml") End Using The above does not work. If I enable the commented line to write the results to file I get a 1K file with <?xml version="1.0" standalone="yes"?> <testSchema xml...

Loading special characters in a string loaded via XML in AS3

Hi When I load an XML using ActionScript all the characters inside strings render fine except special characters like: ñ, Ñ, á, é, í, ó, ú In that cases the letter is omitted. I even try with: &ntilde; or &iacute; But in that case show exactly &ntilde; and &iacute; instead of ñ or í. ¿What can I do? Thanks. ...

modifying string content of XML file in CDATA block

Hi, How can i modifying the string content in CDATA block of an XML file, such as For reference[(text)] please look below syntax, <![CDATA[<FlowDocument FontFamily="Helvetica" FontSize="24" Foreground="#FFFFFF00" TextAlignment="Left" PagePadding="5,0,5,0" AllowDrop="True" xmlns="http://xyz.com"&gt;&l...

Alternative solution to modifying XML file as embedded resource in .dll assembly

I need to create a .dll assembly to read contents of a xml file embedded as a resource and show the content on an ASP.NET page. I searched through the internet for solution to modify the xml file (which embedded as a resource in the .dll assembly) and found out that it's almost impossible to do so. Here's my scenario: 1. I created a .d...

XML file and text files!

Hi, I want to know the advantages of using an XML file over a text file?please help me thanks! ...

XML parser and its advantages and disadvantages

Hi I have heard a lot about XML parser but I want to know i.e 2 kinds of it and also the advantages and disadvantages of each one! please help me thanks ...

GWT - adding external java classes to client project

Hello I have a GWT project. Client code is located in the "client" dir. I want to attach an external java classes (mainly plain POJO DTO classes) that are in external directory. How to configure the gwt.xml file? I get errors of this kind: [ERROR] Errors in 'file:/C:/development/projects/CodeSpaces/LocateMe/LocateMeWeb/src/com/dominol...