|
hai philip,
I have been repeatedly getting the above stated error as
microsoft vbscript runtime error '800a01a8' object required: objNode
I am calling XML,XSLT files from my ASP page.
whenever i am using selectsinglenode() method. i am getting this error.
please help me. My entire project has been stalled due to this error.
my xslt and xml files are good and are without any bugs
my asp page is as follows.
<%Response.Buffer = true
Function viewdetail(strXMLFile, strXSLFile, strID)
'Declare local variables
Dim objXML
Dim objXMLNode
Dim objXSL
'Instantiate the XMLDOM Object that will hold the XML file.
set objXML = Server.CreateObject("MSXML2.DOMDocument.4.0")
'Turn off asyncronous file loading.
objXML.validateOnParse=true
objXML.async = false
'Load the XML file.
objXML.load(strXMLFile)
'set objXMLNode = objXML.selectsingleNode("xml/data/row")
'Get the XML record that you wish to view by calling the
'SelectSingleNode method and passing in the e-mail address of the
'contact.
'Instantiate the XMLDOM Object that will hold the XSL file.
set objXSL = Server.CreateObject("MSXML2.DOMDocument.4.0")
'Turn off asyncronous file loading.
objXSL.async = false
'Load the XSL file.
objXSL.load(strXSLFile)
Response.Write(objNode.transformNode(objXSL))
'Use the "transformNode" method of the XMLDOM to apply the XSL
'stylesheet to the XML document. Then the output is written to the
'client.
End Function
strID=Request.QueryString("au_id")
viewdetail server.MapPath("data.xml"),server.MapPath("adoxsltdup1.xslt"),strID
%>
with regards,
chaitanya
many thanks to those u solve my problem
|
|
|
|
|
hai philip,
I have been repeatedly getting the above stated error as
microsoft vbscript runtime error '800a01a8' object required: objNode
I am calling XML,XSLT files from my ASP page.
whenever i am using selectsinglenode() method. i am getting this error.
please help me. My entire project has been stalled due to this error.
my xslt and xml files are good and are without any bugs
my asp page is as follows.
<%Response.Buffer = true
Function viewdetail(strXMLFile, strXSLFile, strID)
'Declare local variables
Dim objXML
Dim objXMLNode
Dim objXSL
'Instantiate the XMLDOM Object that will hold the XML file.
set objXML = Server.CreateObject("MSXML2.DOMDocument.4.0")
'Turn off asyncronous file loading.
objXML.validateOnParse=true
objXML.async = false
'Load the XML file.
objXML.load(strXMLFile)
'set objXMLNode = objXML.selectsingleNode("xml/data/row")
'Get the XML record that you wish to view by calling the
'SelectSingleNode method and passing in the e-mail address of the
'contact.
'Instantiate the XMLDOM Object that will hold the XSL file.
set objXSL = Server.CreateObject("MSXML2.DOMDocument.4.0")
'Turn off asyncronous file loading.
objXSL.async = false
'Load the XSL file.
objXSL.load(strXSLFile)
Response.Write(objNode.transformNode(objXSL))
'Use the "transformNode" method of the XMLDOM to apply the XSL
'stylesheet to the XML document. Then the output is written to the
'client.
End Function
strID=Request.QueryString("au_id")
viewdetail server.MapPath("data.xml"),server.MapPath("adoxsltdup1.xslt"),strID
%>
with regards,
chaitanya
|
|
|
|
|
I need to feed records one at a time from SQL server to a vendors SOAP API and also be able to receice a record back as a seperate process via SOAP and place it into a different SQL table. The vendor transmitts an account number to me that then becomes part of the filter for what information I must send to them.
TO ME:
Vendor - SOAP - SQL Account Table
SQL Detail Table - SOAP - Vendor
...I think that's generic enough
Any ideas on the best way to accomplish this? Is a web service the right solution? I am looking to only use T-SQL and C#.
Thanks in advance for any help!
Craig
|
|
|
|
|
Im working on this program, and for some reason, I keep getting this error, but I dont understand how to fix it.
Here's the error:
A name was started with an invalid character. Error processing resource 'file:///C:/Documents and Settings/omar/Desktop/stp2.xml'. Line 2, Position 19
------------------^
and heres a copy of my code:
http://sourcepost.sytes.net/sourceview.aspx?source_id=15819
please help, thanks!
|
|
|
|
|
Hi osal ..
your problem - I think -
is, that you wrote a comment with a wrong syntax
so the right statement is like this ...
Good Luck
plz if I where wrong tell me the right statement after that..
|
|
|
|
|
Anyone available to help me out..it's a XML and XSL assignment..!! uregntly needed!!
|
|
|
|
|
|
hi
i am writing an application which maintains records of several clients. Each client has different settings. This is maintained in a XML file. When the user wants to update the data of a particular client changes have for that client.
this is what my XML document looks like.
<?xml version="1.0" encoding="UTF-8"?>
<config>
<client name="Cadbury">
<mcastg>222.23.342.1</mcastg>
<port>2222</port>
<path>c:\</path>
<repeat>4</repeat>
<spawn>4</spawn>
<ttl />
<profile>Custom</profile>
<custom>
<bw>1200</bw>
<dgsize>1024</dgsize>
</custom>
</client>
<client name="dabur">
<mcastg>222.23.432.23</mcastg>
<port>3333</port>
<path>d:\</path>
<repeat>5</repeat>
<spawn>5</spawn>
<ttl>4</ttl>
<profile>High</profile>
<custom>
<bw />
<dgsize />
</custom>
</client>
<client name="Vineet Inc">
<mcastg>222.23.43.4323</mcastg>
<port>5555</port>
<path>e:\</path>
<repeat>10</repeat>
<spawn>1</spawn>
<ttl>4</ttl>
<profile>Low</profile>
<custom>
<bw />
<dgsize />
</custom>
</client>
<client name="ICICI">
<mcastg>223.533.456.234</mcastg>
<port>54334</port>
<path>e:\hello</path>
<repeat>10</repeat>
<spawn>45</spawn>
<ttl>4</ttl>
<profile>Low</profile>
<custom>
<bw />
<dgsize />
</custom>
</client>
<client name="Vikram">
<mcastg>223.533.456.234</mcastg>
<port>5433</port>
<path>d:\vineet</path>
<repeat>10</repeat>
<spawn>45</spawn>
<ttl>4</ttl>
<profile>High</profile>
<custom>
<bw />
<dgsize />
</custom>
</client>
</config>
say i want to edit the settings for ICICI, how do i do from within the executing program. please give proper code.
Thanks
|
|
|
|
|
I have tried to create a generic xsl template to render any MSSQL FOR XML RAW query into a HTML table with adjustable paging and sorting. I have managed to find out how to do each part on its own but I can't put them all together.
Does anyone know how or has anyone seen anything like this before.
JJ
Trying like crazy.
|
|
|
|
|
Hi everyone
My program writes the content of a database in a XML file depending on the user request.
The first time there are no problem, but when i try to rewrite the file with the new content this message appear : WriteStartDocument must be the first call.
This is the code i use to open/close the file :
public void Rewrite()
{
xWriter.WriteStartDocument(false);
xWriter.Formatting = Formatting.Indented;
}
public void CloseFile()
{
xWriter.WriteEndDocument();
xWriter.Flush();
xWriter.Close();
}
I also tried to call the WriteStartDocument only if the file doesn't exist, but in this case the next time (after the file is closed) when some WriteElement instruction is executed the error message is : The writer is closed.
How can resolve this?
Thank you.
|
|
|
|
|
Hi ,
I have an RDL file that I want to view over the web.
The best solution I found is to write a compiler/interperter (RDL->HTML). This is doable but complicated. My question is : is there support for RDL in php,asp,jsp or any other web lang/script for viewing RDL with a browser?
or does anyone have some samples that deal with RDL format?
|
|
|
|
|
Hi code guys!
I've developed a service Logins.asmx. I works fine in local IIS. but when I copy required files to web server. I gives the download dailog (open or save).
Pls tell me how to publish webservice to Web Server.
Thanks.
Time is a good teacher but unfortunately it kills all his students
|
|
|
|
|
Sounds like you don't have IIS configured for ASMX files. That is ASP.NET right? If so you should try that forum you might get more response in there.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
You need to install ASP.NET on the IIS Server. For that, you will need the .NET Framework runtime installed on the machine. After you install it, go to the following folder in the server:
C:\WINDOWS\Microsoft.NET\Framework\<framework version="">
Then run the following command line tool with params:
aspnet_regiis.exe -i -enable
After tool runs, reboot...
ASP.NET will be properly configured on the server!
Hope this helps!
~javier
"I don't suffer from insanity, I enjoy every minute of it." -- Unknown
|
|
|
|
|
Im trying to do the following query on a view in access db:
"SELECT List Totals.Expr1,List Totals.Order ID FROM List Totals"
this is the view definition that i got from the db:
"SELECT Sum([Orders Detail].[Unit Price]*[Orders Detail].[Quantity]) AS Expr1, Orders.[Order ID]\r\nFROM Orders INNER JOIN [Orders Detail] ON Orders.[Order ID] = [Orders Detail].[Order ID]\r\nGROUP BY Orders.[Order ID];\r\n"
and i get syntax error missing operator in query expression List Totals.Expr1
how do i do this right?
|
|
|
|
|
What does this have to do with XML / XSL ?
I don't know if this is correct but in your posted View Definition SQL statement the schema entity names with spaces are delimited with brackets []. It seems likely that your query would have to do the same right?
On a side note I would recommend not using spaces in schemas.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
To All,
How do I extract the XML value where user has selected, and make comparison.
Q1. Are you using computer for web surfing? (Yes / No)
Q2. Are you going to play games and listening to music? (Yes / No)
Q3. Are you going to watch movies on the computer? (Yes / No)
If Q1 = Yes AND Q2 = Yes AND Q3 = Yes then
( PC - Need modem & speakers & CD-ROM drive )
------------------------------------------------------------------------
Please give me some suggestion?
Thanks....
Aaron
|
|
|
|
|
DotNet wrote:
How do I extract the XML
What XML?
DotNet wrote:
and make comparison
What are you comparing?
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
To give you a better picture, this system is something like Sales Consultancy System which helps to advice or educate the customer to buy the (let's say, personal computer) according a sets of question they have answered. After that, the system will analyse from what the customer have selected and make a comparison on which computer model is likely the suitable one to display out the list of PC specification.
Here is the example:
Q1. What is your budget?
<pulldown -="" user="" to="" select="" the="" range=""> 2000 - 2500 , 2500 - 3000 , 3000 - 4000
"Click Next button"
Q2. Are you using computer for?
<user click="" on="" the="" checkbox="">
()- [games and listening to music]
()- [watch movies]
()- [Web surfing, online chatting]
"Click Next button"
After customer have answered this two questions, a list of PC specification will be listed out. This will show the customer which PC to buy.
|
|
|
|
|
It's entirly possible that I am totally dense but I don't beleive we can tell you how to "get the XML value" when you have not provided the XML. Also my exprience tells me we also should know your development platform, operating environment and what specific XML engine you are working with.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
It's just Microsoft Windows platform, using Microsoft Visual Studio.NET 2003, ASP.NET, XML. Below is the coding part, you can amend it.
----------------------------------------------------------------------
<consult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<beginnerchoice>
<question>What is your budget?
<answer>2000-2500
<answer>2500-3000
<answer>3000-3500
<answer>3500-4000
<beginnerchoice>
<question>Are you going to watch movies on the computer?
<answer>PC games and listening music
<answer>watch movies
<answer>Web surfing, online chatting
What is your advice?
Regards,
Aaron
|
|
|
|
|
Well if the use chooses answer number 2 for the first question in the following XML...
<?xml version="1.0" encoding="utf-8" ?>
<consult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<beginnerchoice>
<question>What is your budget?</question>
<answer>2000-2500</answer>
<answer>2500-3000</answer>
<answer>3000-3500</answer>
<answer>3500-4000</answer>
</beginnerchoice>
<beginnerchoice>
<question>Are you going to watch movies on the computer?</question>
<answer>PC games and listening music</answer>
<answer>watch movies</answer>
<answer>Web surfing, online chatting</answer>
</beginnerchoice>
</consult>
Then the XPath query to extract the value that they choose would be:
//beginnerchoice[1]/answer[2]/text()
Hope that helps
-pete
|
|
|
|
|
Hi all,
How can we query xml data between two dates by using XPath.
For example:
I have an XML file like this
"<Employees>
<Employee>
<Name>xxxx</Name>
<DateOfJoin>'2000-04-12T10:12:30'</DateOfJoin>
</Employee>
<Employee>
<Name>yyyy</Name>
<DateOfJoin>'2001-04-12T10:12:30'</DateOfJoin>
</Employee>
<Employee>
<Name>zzzz</Name>
<DateOfJoin>'2002-04-12T10:12:30'</DateOfJoin>
</Employee>
<Employee>
<Name>aaaa</Name>
<DateOfJoin>'2003-04-12T10:12:30'</DateOfJoin>
</Employee>
<Employee>
<Name>bbbb</Name>
<DateOfJoin>'2004-04-12T10:12:30'</DateOfJoin>
</Employee>
</Employees>"
Now I want employee names between 2002 and 2003.
Thanks inadvance.
|
|
|
|
|
Mr/Mrs Anonymous,
According to Microsoft(moc 2663) and www.W3.org(XPath link), only nodes, node, string, bool and number items might return. So if you want to query a date you might use XmlReader or derived class. If you want it with XPath, you should do it like this.
?* If you have better idea or sth better let me know.
------------------------------------------------------
...
DateTime dt;
string name = "";
XPathExpression expression = navigator.Compile(
"/Employees/Employee/Name | /Employees/Employee/DateOfJoin");
XPathNodeIterator i = navigator.Select(expression);
while(i.MoveNext())
{
if(i.Current.Name == "DateOfJoin")
{
dt = XmlConvert.ToDateTime(i.Current.Value);
if(2002< dt.Year && dt.Year < 2004)
{
//TODO
//tbx_msg.Text += name +"\r\n";
}
}
else
{
name = i.Current.Value;
}
}
|
|
|
|
|
Try the following XPath:
<br />
/Employees/Employee[substr(DateOfJoin,0,4) <= 2003 and substr(DateOfJoin,0,4) >= 2002]/Name<br />
If you are using XSLT, it will better to select the Employee node and do with it what you please
<br />
<xsl:apply-templates select="/Employees/Employee[substr(DateOfJoin,0,4) <= 2003 and substr(DateOfJoin,0,4) >= 2002]"/><br />
<br />
<xsl:template match="Employee"><br />
<!--More Rules--><br />
</xsl:template><br />
~javier lozano
(blog || email)
|
|
|
|