xml

How do I display grouped XML data in a Flex pie chart?

I've looked into grouping XML data with GroupingCollections and AdvancedDataGrids, but I can't figure out how to display that data in a chart. Basically, what I want to do is group the data by the category field, which should give me two rows under red, one under blue, and one under green. When inputting this data into the pie chart, it...

Essential AIML responses?

What do you think are important pattern/temples to program. Like in a chatbot what does EVERY chatbot need a response for? Im just starting out making the aiml file and need some help... Heres the file now. <aiml> <category> <pattern>Hey</pattern> <template>Whats up?</template> <category> <category> <pattern>WHAT ARE YOU?...

Problem inserting node (text) into XML document via XSLT

Hi all: I'm having trouble inserting a block of text when a certain condition is met into an xml document using XSLT. Suppose I have the following xml: <oldStep Name="Step1"> <oldItems> <oldItem ItemName="item1"> </oldItem> <!-- want to add an extra <Item> here if Step Name == "Step1" --> <oldItem I...

ASP.NET : XML Viewer for website

I have a XML file , that I need to show to the users in readable format i.e in formatting. how this can be done with ASP.net website. Any Help ...

Want to retrieve data from database using Flex+Cairngorm framework..

Hi.. I am new to cairngorm framework.. I need to retrieve the table data to flex UI using Flex + Cairngorm and PHP + MYSQL.. I got it using Flex alone using xml + PHP + MYSQL.. But in this case, i can't get the table data values.. Need a sample application with source code.. Help me.. Please.. Thanks in advance.. ...

Reading UTF-8 XML and writing it to a file with Python

I'm trying to parse UTF-8 XML file and save some parts of it to another file. Problem is, that this is my first Python script ever and I'm totally confused about the character encoding problems I'm finding. My script fails immediately when it tries to write non-ascii character to a file, but it can print it to command prompt (at least i...

Flash AS3 and XML: way to fix line breaks in htmlText that uses <b> tags in the xml?

I'm importing text in from an xml file and i'm using htmlText to try to keep some styling with tags. I have both the regular and bold face font embedded, and the bolding works fine. The problem is that it ads spaces around the words in bold like a paragraph indent and then makes a line-break after them. What's going on, is there a way t...

Read a remote zipped xml with just XSL

Hello there I want to know if it's possible for an XSLT file to read data from an XML located within folders of a remote zip(from the server at work), without any external processors (saxon and so forth) and without downloading it. Failing that, I'll resort to just reading the information from the zip... which brings me to my other (n...

Storing XML Files in Java Project

Apologies for the fairly open question however I feel it needs to be this way. In any given Java project, preferably a web service, have you ever had to store XML files? At the moment I am creating a Google Web Toolkit web service and I need a way to 'store sessions'( like in iGoogle to store the layout ). However once I have this mecha...

Validating and filling default values in XML based on XSD in Python

How do I fill the default value in my XML during validation against XSD? If my attribute is not defined as use="require" and have default="1", it could be possible to fill these default values from the XSD to the XML. Example: Original XML: <a> <b/> <b c="2"/> </a> XSD scheme: <xs:element name="a"> <xs:complexType> <xs:sequence...

how to check whether xml file has access or not in c#?

i am saving dafault values in an xml file. if i dont have access to the xml file i should show message in the status bar ...

How to get all attributes for a particular xml node in qt

hello is it possible to get all attributes for a particular node in pyqt ? for example .. consider for following node: < asset Name="3dAsset" ID="5"/> i want to retrieve the ("Name" and "ID") strings is it possible? thanks in advance ...

How to compare attributes with each other

I have a Range element like <Range min="-5.0" max="5.0" /> which is described in an XML schema as the type RangeType <complexType name="RangeType"> <attribute name="min" use="required" type="double" /> <attribute name="max" use="required" type="double" /> </complexType> Is it possible to use XML-Schema to require the max at...

Creating hashmap/map from XML resources

Hi! I'm making an application where a web service fetches (amongst other) a bunch of codes from a webservice (I.e BEL, FRA, SWE). During runtime I want to translate these codes to their apporiate names to display to users (I.e Belgium, France, Sweden). There can be a lot of these codes, so i'm wondering if there is any approriate way to...

how to check whether xml file content is in correct format?

i have one default.xml file where i am storing all default values.suppose if invalid file with the same default.xml name exists i have to display message in the status bar. ...

PHP: How to get version from android .apk file?

I am trying to create PHP script to get app version from Android APK file. Extracting xml file from APK (zip) file and then parsing XML is one way, but i guess it should be simpler. Something like PHP Manual, example #3. Any ideas how to create script? ...

Stringbuilder vs SQL FOR XML / XSL Transform

I have an interface that loads a list of documents depending on the tab clicked by a user. I've been retrieving the data through XML from a SQL 2008 database with: SELECT col1, col2 col3 FROM documents WHERE typeId = 4 FOR XML PATH('doc'), ROOT('documents') Then tranforming the XML with an XSLT stylesheet. It all works fine. To imp...

Xpath help. Get childnode with variable name

I have the following XML: <StatsContainer> <Variant1>0</Variant1> <Variant2>0.5</Variant2> <Variant3>1.2</Variant3> <Variant4>4.1</Variant4> <Variant5>93.9</Variant5> <Variant6>0.3</Variant6> <Variant7>0</Variant7> <Variant8>0</Variant8> <Variant9>0</Variant9> <Variant10>0</Variant10> <Variant11>0</Variant11> <Va...

WSDL.exe tool - generating code for .NET Compact Framework

Hello Is the wsdl.exe tool capable of generating proxy code for .NET Compact Framework 2.0? Regards Dominik ...

iPhone Safari Vs PC Safari

This js-code works in safari on my pc, but not on a ipod touch safari (has also tested it on a iphone - still not working). $(document).ready(function(){ $.ajax({ type: "GET", url: "list.xml", dataType: "xml", cache: false, success: function...