|
One more question,
A litle less, but still importent:
I have linux mandrake .
and I need to install the JDK
so I downloaded the file: JDK_file.rpm.bin
And executed it from the using the linux command: . JDK_file.rpm.bin
After the extrection...
I typed: ls . and saw the list of files.
2 files were there:
JDK_file.rpm.bin
and
install.something.1157
How do I run the .something file??
=-=-=-=-=-=-=
The-Server
|
|
|
|
|
I have a problem :
I have been developing an RSS feed in PHP. I have used the following RSS validator, and it states that it is valid RSS output :
http://feedvalidator.org/check?url=http%3A%2F%2Fqtextender.com%2Fforum%2Findex.php%3Fact%3Dmodule%26module%3Drecent%26limit%3D10%26admin_forums%3D%287%2C9%29
That is for the following url :
http://qtextender.com/forum/index.php?act=module&module=recent&limit=10&admin_forums=(7,9)
The problem is, when I enter the above url, it doesn't display at all within Internet Explorer. Why doesn't it display like The Codeproject's RSS feed?
http://www.codeproject.com/webservices/articlerss.aspx?cat=2
Do I need to output any specific headers?
Here's a link[^]
(the tages gets screwed up when trying to display in this forum) to the code.
Any help would be appreciated.
Jim
QTExtender - The OFFICIAL addon for QuoteTracker.
|
|
|
|
|
I know this really shouldn't be defeating me, but... I have a page where i'm using XSLT to transform a simple XML document (forum postings). This works fine, but if I want to display just one topic, i'm finding myself stuck. Using c# I can create an XmlNodeList containing the XML that I want, by performing a SelectNodes on an XmlDocument. This gives me the right data back, my XPath expression is fine. But! How do I then apply an XSL transform to that resulting nodelist? XSLT on seems to like XMLDocs, etc. Can I convert a NodeList to a Doc? I'm really stuck!
Am I going about this the wrong way? Any help, or hints, anything, would be very gratefully received!
|
|
|
|
|
You can use for-each statement in xslt and loop thru in xslt. But anyway you have to pass XMLDocument, not XMLNodeList. Pass the XPath as a parameter to XSLT or you can hardcode in xslt if it doesnt change.
You can check MSND for how to use for-each statement and Passing parameters to XSLT.
|
|
|
|
|
hi to u
, my project that i need asp.net program that take two file ,file of xml the other of dtd file , and take tha data from it and put it in database as access for example plz if u can help me plz u or ur freind plzzzzzzzzzzzz
samah
plz
|
|
|
|
|
Since you're using ASP.NET, just take advantage of the easy-to-use Xml web control. Give it an XML document, XSLT document, and render it (ASP.NET will do this when sending the response to a client browser). If you need this in a database, you can render it yourself and save the resulting document to a database.
You could also do this manually using the System.Xml.XmlDocument and System.Xml.Xsl.XslTransform classes. They do contain example source code.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
I have a web user control that contains some web server controls (Label, Texrbox, ddl,....) and I need to save the settings of those user control in an XML file using XML serialization. When I try to serialize any web server control I get the following error message:
"Can't serialize web control because there is no default constructor"
Please Help.
|
|
|
|
|
Classes need default constructors (constructors with no parameters) in order to serialized using the XmlSerializer . You'd have to extend these and implement a default constructor in the class itself.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Hi,
I'm serializing an array of objects using XML Serialization. Using attributes you can customize what the xml element names will be. If you serialize an array, the root name is prefixed with "ArrayOf". How do you change that? I tried using the [XmlArray( Elementname = "SomethingElse") ] attribute on the array, but it didn't seem to work.
I've seen examples where they use the "XmlRoot" attribute on the class name. But I'm serializing JUST the array, NOT a class. So I can't use that.
Basically here's what I have...
I have
MyType[] myArray;
and I want to serialize that...
XmlSerializer xs = new XmlSerialize( typeof( MyType[] ) );
xs.Serialize( fileStream, myArray );
I get...
<arrayofmytype>
<mytype>...
<mytype>...
Is there anyway to change <arrayofmytype> to something else?
Thanks.
|
|
|
|
|
The XML didn't show up
I get...
<?xml version="1.0" encoding="utf-16"?>
<ArrayOfMyType>
<MyType>...</MyType>
<MyType>...</MyType>
<MyType>...</MyType>
</ArrayOfMyType>
|
|
|
|
|
Unfortunately, this doesn't seem possible using the System.Xml.Serialization attributes. On this and another site a long time ago, several other people and I discussed this and came up with nothing. You can control the XML serialization if you implement the undocumented IXmlSerializable interface, however, but you'll have to implement this in a class that contains the array since you can't actually implement an array class yourself (although you could implement and use a collection or list instead).
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Thanks for your reply.
Could you point me to the discussion?
|
|
|
|
|
You can search for the discussion in google, since both DevHood and CodeProject are well-indexed.
I will point you to two articles that were the results of those discussions:- XML Serialization of Collections in C#[^]
- XML Serialization in C#[^]
Both of these end up in wrapping a list or array in a class to be serialized, but then that gives you control over what exactly is serialized. Otherwise, make a collection or a list class as I mentioned before, and implement IXmlSerializable , which is pretty easy to implement, though undocumented.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
i have software project about ( how to extract data from XML document ) and read ur page and plz i would be grateful if u could send me some help in this subject
plz help me
samo7a
|
|
|
|
|
Please be more specific, if you have a particular question with a defined scope there are many who are willing to help.
- Nick Parker My Blog
|
|
|
|
|
I am trying to dynamically create web sites using xml/xsl transformations, but am having trouble with the formatting of the output html.
My code looks like this:
Dim xslDoc As XslTransform = New XslTransform()<br />
<br />
xslDoc.Load(sXslDoc)<br />
xslDoc.Transform(sXmlDoc, sNewHtmlFile)
The problem is the my HTML output is formatted with indentation and carriage returns for every new tag, like an XML document:
<tr><br />
<td width="209px" height="49px" bgcolor="#FFFBE6"><br />
<img border="0" src="images/logo.gif"><br />
</td><br />
<td width="66px" height="49px"><br />
<img src="images/banner03.gif" width="66px" height="49px" alt=""><br />
</td><br />
</tr>
And I want it to look like this:
<tr><br />
<td width="209px" height="49px" bgcolor="#FFFBE6"><img border="0" src="images/logo.gif"></td><br />
<td width="66px" height="49px"><img src="images/banner03.gif" width="66px" height="49px" alt=""></td><br />
</tr>
Without puting carriage returns before every new tag, because it seems to be screwing up how it displays in the browser. I have a lot of cells with images in them and it looks like the carriage returns are putting spaces or something after the images and everything gets thrown off, and my pages look like crap!!
Any ideas?
|
|
|
|
|
In your XSLT document, set the following right below the <xsl:stylesheet> document element (assuming your XSLT namespace prefix is "xsl"):
<xsl:output method="html" indent="no" /> See the <xsl:output/> element for more details.
This will allow you to keep the formatting that you use in the XSLT document.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Thank you, that worked perfectly.
|
|
|
|
|
I need to make a letter template using xml in vb.net
eg after creating template when use clicks a button in form template must be loaded there he must able to type anything such as
<name></name>
<u><b><font name="comic sans"><u>hi</font></b></u>
as above when you type name it must retrieve in order each customer name and under that must print hi according to requirement changing the font bolding and underline it
its urgent please please
Thanks please email to aynka2000@yahoo.com
|
|
|
|
|
there is a xml file: price.xml
<price>
<comdt>
<Tname id=0>AAA</Tname>
<Tprice>0</Tprice>
</comdt>
<comdt>
<Tname id=1>BBB</Tname>
<Tprice>0</Tprice>
</comdt>
</price>
the price is null,
now I have a array,arrprice(i),
arrprice(0) is AAA's price,
arrprice(1) is BBB's price,
How to use the arrprice(i) update the xml file?
I tried this way,
For x = 0 To 1
Set objprice = objDom.SelectSingleNode("//price/comdt"&[x]&"/Tprice")
objprice.Text = arrprice(x)
but it doesn't work.
Thank you!
|
|
|
|
|
Set objprice = objDom.SelectSingleNode("//price/comdt[" & x & "]/Tprice")
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
When I use Microsoft's sproxy.exe (version 7.00.9466) to create a web reference in a Visual C++ application, I get an error message: SDL1000 : Not enough storage is available to complete this operation. If I remove the fault element from the operation element, the header is generated. See wsdl below. Any ideas?
Thanks,
Rick
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xmlns.catch.com/ws/types" xmlns:tns="http://xmlns.catch.com/ws" name="RemoteAccess" targetnamespace="http://xmlns.catch.com/ws">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
="" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://xmlns.catch.com/ws/types" targetnamespace="http://xmlns.catch.com/ws/types">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/">
<complextype name="WebServiceException">
<sequence>
<element name="errorCode" type="int">
<element name="message" type="string">
<message name="RemoteAccessProvider_endSession">
<message name="RemoteAccessProvider_endSessionResponse">
<porttype name="RemoteAccessProvider">
<operation name="endSession" parameterorder="">
<fault name="WebServiceException" message="tns:WebServiceException">
<binding name="RemoteAccessProviderBinding" type="tns:RemoteAccessProvider">
<operation name="endSession">
<soap:body encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://xmlns.catch.com/ws">
<soap:body encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://xmlns.catch.com/ws">
<fault name="WebServiceException">
<soap:fault encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://xmlns.catch.com/ws/">
<soap:operation soapaction="">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc">
<service name="RemoteAccess">
<port name="RemoteAccessProviderPort" binding="tns:RemoteAccessProviderBinding">
<soap:address xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" location="http://localhost/ws">
|
|
|
|
|
re: reposting wsdl
<?xml version = '1.0'?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns2="http://xmlns.catch.com/ws/types"
xmlns:tns="http://xmlns.catch.com/ws"
name="RemoteAccess"
targetNamespace="http://xmlns.catch.com/ws">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://xmlns.catch.com/ws/types"
targetNamespace="http://xmlns.catch.com/ws/types">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="WebServiceException">
<sequence>
<element name="errorCode" type="int"/>
<element name="message" type="string"/></sequence></complexType>
</schema></types>
<message name="RemoteAccessProvider_endSession"/>
<message name="RemoteAccessProvider_endSessionResponse"/>
<portType name="RemoteAccessProvider">
<operation name="endSession" parameterOrder="">
<input message="tns:RemoteAccessProvider_endSession"/>
<output message="tns:RemoteAccessProvider_endSessionResponse"/>
<fault name="WebServiceException" message="tns:WebServiceException"/></operation>
</portType>
<binding name="RemoteAccessProviderBinding" type="tns:RemoteAccessProvider">
<operation name="endSession">
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://xmlns.catch.com/ws"/></input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://xmlns.catch.com/ws"/></output>
<!-- Offending Code, remove and sproxy.exe works.-->
<fault name="WebServiceException">
<soap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="http://xmlns.catch.com/ws/"/></fault>
<!-- Offending Code End -->
<soap:operation soapAction=""/></operation>
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/></binding>
<service name="RemoteAccess">
<port name="RemoteAccessProviderPort" binding="tns:RemoteAccessProviderBinding">
<soap:address xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" location="http://localhost/ws"/></port></service></definitions>
|
|
|
|
|
i want to crystal reports in my code using c#,and i don't know if i can make it read from xml files,and how
|
|
|
|
|
I've had this problem for a while and I'm stumped. For almost 2 months now, MSDN Online library quite showing the TOC, instead just displaying "Unavailable". Looking at the HTC code, there's only two reasons this would happen. The first is just a file access problem, when it can't download the XML TOC file. The second is that the "Microsoft.XMLDOM" COM object can't be created. I'm pretty sure the second case is the problem.
I tried the obvious things: deleting relevent cookies and clearing the cache. Nothing. So I did some research on the MS KB and did what it told me: I uninstalled MSXML4 then used xmlinst.exe to unregister MSXML3. I then re-registered MSXML3 and reinstalled MSXML4. The WinSxS directory shows the MSXML4 SbS assembly, and I have MSXML[234]? in my system directory. The registry contains all the necessary ProgIDs that resolve correctly to the right CLSIDs, which reference the right libraries. Still no joy.
So, does anyone have any idea of what else I can try? I've googled for similar problems and only found one valid reference with no resolution. Being an avid poster in the C# forum and frequently reading the articles posted on MSDN, doing so without the TOC is next to impossible!
Any help would be greatly appreciated.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|