|
Curtis,
Thanks a milliom for the reply. I guess this is a path that has less flowers and more thorns in it. So let me check out your suggestion and get back to you. I guess you need to know that i am not the best of pesons in writing xslts. All i hve done is taken an xslt of another xml document and have modified it in such a way that i can help show my xml in word. What you also have to understand is that, I am trying to generate an XSLT and convert my xml to word and back programatically in .NET. So i guess i will hae to figure out a way in which i can do this .
Thank you Loads
Teja
|
|
|
|
|
Hi,
I am trying to use an xslt to Transform an XML created by serializing a WCF DataContract object to HTML and i am not able to see the values in the out put.The xml is as folows
<Assessment xmlns="http://schemas.datacontract.org/2004/07/EDIM.DataContracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Respiration>
<Accessory>true</Accessory>
<AirWaySize>3.5</AirWaySize>
<AirwayCongestion>false</AirwayCongestion>
<Apneic>true</Apneic>
<AssessmentDateTime>2009-02-20T13:22:47.313</AssessmentDateTime>
<AssessmentIdentifier>1</AssessmentIdentifier>
<Assisted>true</Assisted>
<Asymmetrical>true</Asymmetrical>
<BSUpperAirwayL i:nil="true" />
<BSUpperAirwayR i:nil="true" />
<Barking>true</Barking>
</Respiration>
</Assessment>
I am new to xslt and i created a new xslt file from VStudio 2008 and gave this xml as input and i got the error "Unspecified error File:vsee\pkgs\vssprovider\sccprj.cpp Line number:3670" eventhought i did not change anything on the new file.Shouldn't it have given me something?
I used style vision of xmlspy and when i try to view the output the Values( for eg: assisted) does not show in output.
Am i missing anything? Please help....
|
|
|
|
|
Hi,
I am beginning using XML. I can write to XML ok but I am having problems reading it in C#. What have I done wrong and how can I fix it.
My code
XmlReader Reader = new XmlTextReader(Property.Settings.Default.XML_Location);
while (Reader.Read())
{
if (Reader.Name == "Finished"));
{
listbox1.Items.Add(Reader.Name + " : " + Reader.Value);
}
}
My XML page
<testapp>
<database location="C:\Program Files\Example" filename="test.mdb" full="C:\Program Files\Example\test.mdb" />
<finish finished="True" />
<testapp>
</testapp></testapp>
Thanks
|
|
|
|
|
I don't know what your current problem is because you did not state what it was. However using == in an object oriented system is not best practice. See string.Equals()
Secondly, "Finished" is NOT EQUAL to "finished".
jammmie999 wrote: if (Reader.Name == "Finished "));
jammmie999 wrote: <finish>finished ="True" />
|
|
|
|
|
Hey guys, how's it going?
Don't know if The CodeProject is the right place for this message, but what the hell
I put this on "General Discussions" earlier but got no reply, so I figured maybe the XML forum might help...
I have this closed network and I want to put a sh*t load of content from news sites and maybe even technical sites on it so that the people using it can view it as if they were online.
I was thinking of using RSS feeds for the job. Does anyone know where I can find a simple tutorial to show me how?
Thanks a bunch,
Lior
|
|
|
|
|
This[^] looks promising.
Otherwise, there's plenty of other sites here[^].
Kristian Sixhoej
"You can always become better." - Tiger Woods
|
|
|
|
|
Thanks Kristian!
But unfortunately, I wasn't gunning for this... I don't want to create a website on the internet with the rss feed on it. I want to get the metarial into a closed intranet server. I want to be able to put all of the feed onto a CD or something and get it OUTSIDE the internet.
Do you know of something with a simple interface allowing me to do so? Or how I can look it up on google? (Can't seem to phrase it properly)
Lior
|
|
|
|
|
I haven't heard of any interface or methods for this purpose, but you could build your own application that goes through a specified RSS feed, saving all the items in it to a text file.
That's the only way I can think of to accomplish this.
Kristian Sixhoej
"You can always become better." - Tiger Woods
|
|
|
|
|
Hi Everybody.
I want to add an extra declaration statement like '<?qbxml version="7.0"?>' in my o/p xml which is generated by xslt.
Will anybody suggest me is there any way to do this using xslt?
|
|
|
|
|
I don't know if this works but you can try placing this at the top of your main xsl:template:
<xsl:processing-instruction name="qbxml">
<xsl:text>version="7.0"</xsl:text>
</xsl:processing-instruction>
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Thank You for help.
It works perferctly.
|
|
|
|
|
when I tried in xslt 1.0 in vs2008
<xsl:processing-instruction name="xml">
<xsl:text>version="1.0"</xsl:text>
</xsl:processing-instruction>
I am getting error xsl:processing-instruction cannot be a child of xsl:stylesheet
|
|
|
|
|
Hi ,
I want to retrive the xml data into my database table.
The xml file is from outside of application.so i want to retrive that xml data into database with in some temporary table
Thanq
|
|
|
|
|
If u want to do this using any programming lang. then u should check the documentation of lang. There will be some methods provided by its api to extract xml elements.
|
|
|
|
|
Hi all!
I want to add an extra header in my output xml which is generated by converting simple xml.
how can i add header in o/p xml?
plz suggest me.
|
|
|
|
|
jagjit_surfer wrote: how can i add header in o/p xml?
Well you could use XSLT for that. There are other ways.
|
|
|
|
|
I m currently using xslt, but i don't know the way how can i set xml declaration?
I want to add extra declaration like in my transformed xml doc.
Would u plz suggest me?
modified on Friday, February 20, 2009 1:55 AM
|
|
|
|
|
jagjit_surfer wrote: but i don't know the way how can i set xml declaration?
Are you looking for this[^]?
Or maybe you are looking for this element[^]
If not I don't understand what you want to do. Try using the tutorials and documentation on that site I linked to.
Also don't repost your messages in these forums. It is considered rude and is a waste of resources.
modified on Friday, February 20, 2009 10:46 AM
|
|
|
|
|
I am making a databse query file for device application in XML file. But it is not recognizing the "<" sign...what should be included in order to make it recognize "<" sign
|
|
|
|
|
Hi,This is a part of my xml file. I am not able to sort the results with same board type and different occupancy.
<establishment>
36697
<description>Express By Holiday Inn Croydon <contract>164.GR-ALL-SWS
<child_min_age>0
<child_max_age>11
<location>
<destination>
LON
<description>London
<zone>
7
<description>Croydon
<category>
3EST
<description>3 STARS
<incoming_contract>TS80024237
<offer>YES
<classification>NOR
<currency>GBP
<room>
FAM.ST
<description>FAMILY ROOM STANDARD <availability>4
<price>
<occupancy>
<adults>2
<children>1
<rooms>1
<board_type>
CB
<description>CONTINENTAL BREAKFAST
<amount>46.89
<room>
DBL.ST
<description>DOUBLE STANDARD <availability>4
<price>
<occupancy>
<adults>2
<children>0
<rooms>2
<board_type>
CB
<description>CONTINENTAL BREAKFAST
<amount>93.78
<room>
TWN.ST
<description>TWIN STANDARD
<availability>4
<price>
<occupancy>
<adults>2
<children>0
<rooms>2
<board_type>
CB
<description>CONTINENTAL BREAKFAST
<amount>93.78
Fisrt group all rooms by board type then under board type group rooms
with each occupancy type e.g. room with different occupancy are grouped together
Thanks
A J A Y
|
|
|
|
|
Hi,
I have to get the videos from a web page or from a YouTube page with the help of their embedded tags. I came to know that this is possible through XML parsing. I need to do this in my ASP.Net (with C#.Net) application. Anyone who have idea on this please help me.
Thank you
|
|
|
|
|
Hi,
I need to develop an application in which we have to get the videos in a Youtube page in to my database or to somewhere from which i can upload them into my database. I came to know that we can do this using XML parsing. If you have any solution for this please help me.
Thank you
|
|
|
|
|
Hi, I'm new to XSL transformations so bear with me. I've got an xsl stylesheet where I'm trying to skip lines after each XML item called 'message'. I haven't figured out where to put my <br/> tags, and I also want to be able to change the font of my xml element node 'date' to a different font color. I'm brand new so I appreciate any help
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
<xsl:output method="xml" indent="yes"/>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
<table width="500" border="0">
<xsl:for-each select="Message">
<tr>
<td>
<xsl:value-of select="message" />
</td>
</tr>
<br/>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>
|
|
|
|
|
I got it
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="Message[Message]">
<html>
<body>
<table border="0">
<xsl:apply-templates select="Message"/>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="Message[parent::Message]">
<tr>
<!--<td>
<xsl:value-of select="title"/>
</td>-->
<!--<td>
<xsl:value-of select="subtitle"/>
</td>-->
<td style="color:red;">
<xsl:value-of select="date"/>
</td>
<td style ="font-weight:bold">
<xsl:value-of select="messagetext"/>
</td>
</tr>
<br/>
</xsl:template>
</xsl:stylesheet>
|
|
|
|
|
Hi,
I'm parsing a fixed size flat file document and convert it into XML, but I therefore have output like
<root>
<foo bar=" lulz "> zomg </foo>
<hello> world</hello>
</root>
Which I'd like to look like:
<root>
<foo bar="lulz">zomg</foo>
<hello>world</hello>
</root>
Is there a way to do this with XSLT? I've tryed a copy/copy-of and normalize-space, but it doesn't give me the output I'd want. This is driving me insane.
Thanks!
|
|
|
|