xml

XML Serialazer C# Silverlight

For some reason i ca´t use this class (XmlSerialazer) on my application on C# silverlight,they jus´t don´t get recognized. I am calling this librarys on my application using System.Xml; using System.Text; using System.Xml.Serialization; using System.IO; I am pretty sure that all needed library is there, but still the problem why i can´t...

how to add a param to xslt with xslt-ruby?

the title states it, essentially what is wrong here? I keep getting nothingness the param isnt getting passed... <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:param name="stylesheet"/> <xsl:template match="/"> <xsl:copy-of select="$stylesheet"/> </...

Creating a flash slide show with buttons in Flash CS5, AS 3.0

I need to create a slide show in Flash using AS 3.0. I want it to have the same functionality basically as http://www.fao.com/home/index.jsp but without the text area on the bottom. I want the images to rotate, but instead of having the numbers rotate and a forward pause and backwards button. Or similar to http://www.auroragift.com/new_w...

How to dynamically retrive the all the possible attributes (variable attributes) values of one of the xml node ?

I am using the following XML structure <SERVERS> <SERVER NAME="A1" ID="1"></SERVER> <SERVER NAME="A2"></SERVER> <SERVER NAME="A3" ID="3" Parent="XYZ"></SERVER> <SERVER NAME="A4" ID="4"></SERVER> <SERVER NAME="A5" Parent="abc" value="10"></SERVER> <SERVER NAME="A6"></SERVER> </SERVERS> I am accessing this xml file by using LINQ to XML ...

What is the best way to cache XML feeds locally?

I have a XML feed which contains 1000+ records of properties (rent, sale). Currently I am calling this feed 16x on homepage, always returning only 3 properties for specific criteria like 3 new house, 3 new flats, etc, 5 recommended house, 5 recommended flats etc. This scenario was working well for 7 months whilst there was 200+ proper...

Delete node from XML according to attribute

hi ! from this xml file i want to delete picture node according to attribute id. i have written php code but it does not work. <gallery> <organizate> <organization w="3" h="1" space="17"/> <organization w="4" h="2" space="17"/> <organization w="6" h="3" space="7"/> </organizate> <pictures> ...

xslt returning first occurance of column

Hi, I have an xml document which looks like <book>xxxxxxxxxxx</book> <record> <field> <column>Title</column> <value>HF80</value> </field> <field> <column>page</column> <value>97</value> </field> ..... ... I need to print the "column" heading as a table row. I can get all the records in a table but dont kno...

How can I edit XML files on my HTC HD2 phone?

When I tap it, it opens with Opera. Is there something similar to the "Open With... Notepad" functionality we have in Windows OS? I can't seem to find any. Also, Microsoft Word and Note mobile has no "Open file" function... That's why I can't edit it with these tools. I find it very odd. If you guys know how, please help. Thanks in adv...

Implementing condition in XPath and XQuery

I have a XML file <?xml version="1.0" encoding="UTF-8"?> <xml> <events date="12/12/2010"> <event> <title>JqueryEvent</title> <description> easily </description> </event> </events> <events date="14/12/2011"> <event> <title>automatically onBlur</title> <description> when a date is selected. For an inline calendar, simply attach the dat...

How do I optimize schemaDocument.Namespaces code for performance ?

Hi, I have this code that is called thousands of times and I need to optimize it for performance. I thought about caching xmlQualifiedNames but it's not good enough. any ideas ? private static string GetPrefixForNamespace(string ns, XmlSchema schemaDocument) { string prefix = null; XmlQualifiedName[] xmlQualifi...

Using .NET to validate XML against a schema

I want to test (true or false) whether an arbitrary XML file matches a given schema. For what it's worth, the schema is the Word 2003 WordML schema, which Microsoft defines using a list of about 7 *.xsd files. One of these files also includes the W3C xml.xsd file, by including the following statement: <xsd:import id="xml" namespace="h...

handling carriage return in canonicalization with java

Hello, I am trying to canonicalize an html text node by com/sun/org/apache/xml/internal/security/c14n/Canonicalizer.java class. My input file has carriage return and a line feed at the end. Upon canonicalization I expect to see the carriage return transformed into &#xD;. However, the the output I get does not contain the carriage return...

Removing hex characters from xml file with php

So to start, I have an array of XML files. These files need to be iterated through and checked for certain 'unrecognized' hexadecimal characters and replaced with normal UTF-8 text, or some kind of placeholder. I've tried iterating through the files and replacing the hex codes using both str_replace and preg_replace with no luck. My ul...

How do I read app.config values and set properties in Wix

I have a .NET program that I've written a Wix installer for. I want to be able to update from a pre-Wix version. To do this, I'd like to read from the installed program's app.config file. This will save the user from having to manually retype in all of these values. Is there anyway to do this? Thanks! ...

Renaming XML elements in Ruby?

How does one go about renaming an XML element using REXML or another Ruby library? Thanks for any advice. ...

How to findViewById() an @android:id/list element in an Android activity?

I'm trying to get the ListView by using the findViewById function, yet I'm unsure what I am trying to find or what to put. R.id.list does not work. Thanks! ...

Using XML for storage behind a standard object interface.

Forenote: When I refer to 'interfaces' here, I mean the actual interface to an object, not interface classes, i.e. class Customer { public Name {get;set;} } includes a Name property in its interface. Is there a pattern for exposing XML element values as class interface properties, e.g. with the following XML: <Notification name="Reques...

Scrollview issue in Android layout xml

I am trying to set up a scrollview in the middle of the screen, in between a header (tablelayout) and a footer (button within ralativelayout).... My problem is that while the child items (edittext and spinners) stay in the assigned area, the scrollbar extends the entire length of the screen. Any idea what I'm doing wrong? Thanks in advan...

How to click a ListView item in Android

I'm trying to have another activity launch when a list item gets clicked. Below is my code: public class AvoidForeclosure extends CustomListTitle { /** Called when the activity is first created. */ private DbAdapter db; private SimpleCursorAdapter clients; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(s...

PHP dynamic URL writing to accommodate dynamic menu and paths

I'm trying to figure out what the best way to go about rewriting urls to accommodate not only a directory structure, but appended actions for a menu for a site I'm building in PHP. I have one page that dynamically loads content based on whatever "page" is being loaded. Includes are pulled based on what the page is. Right now that's tied...