473,804 Members | 3,037 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Which ms technology for searching xml documents?


Hi,
We have an ASP.NET site,and a data base which contains different types of
XML documents
I would like to ask which technology is best to use for searching XML
documents.
My concern is that a 'simple' search on the XML document can retrieve wrong
results
if the search will ignore the fact that the XML have a schema inside
for example assuming I have simple XML

<FirstName>Juli a the Last<FirstName>
<LastName>Adria no<LastName>

Running query to look for 'Last' will also find the LastName 'Tag'
Thanks in advance


Nov 17 '05 #1
3 1154
I would say that XPath is the way to go. That's what it is for, after
all.

On Wed, 1 Jun 2005 11:50:19 +0200, "Julia" <co********@012 .net.il>
wrote:

Hi,
We have an ASP.NET site,and a data base which contains different types of
XML documents
I would like to ask which technology is best to use for searching XML
documents.
My concern is that a 'simple' search on the XML document can retrieve wrong
results
if the search will ignore the fact that the XML have a schema inside
for example assuming I have simple XML

<FirstName>Jul ia the Last<FirstName>
<LastName>Adri ano<LastName>

Running query to look for 'Last' will also find the LastName 'Tag'
Thanks in advance


Nov 17 '05 #2
..NET v2 solves this spectacularly by allowing xpath subqueries in TSQL. In
..NET v1.1 and previous though, you have at least two choices a) use an XML
based database to store your documents, or b) retreive each row and check
contents using XmlDocument.Sel ect() or the other classes in the System.Xml
namespace.

"Julia" <co********@012 .net.il> wrote in message
news:uU******** ******@TK2MSFTN GP10.phx.gbl...

Hi,
We have an ASP.NET site,and a data base which contains different types of
XML documents
I would like to ask which technology is best to use for searching XML
documents.
My concern is that a 'simple' search on the XML document can retrieve
wrong
results
if the search will ignore the fact that the XML have a schema inside
for example assuming I have simple XML

<FirstName>Juli a the Last<FirstName>
<LastName>Adria no<LastName>

Running query to look for 'Last' will also find the LastName 'Tag'
Thanks in advance

Nov 17 '05 #3
Julia <co********@012 .net.il> wrote:
We have an ASP.NET site,and a data base which contains different types of
XML documents
I would like to ask which technology is best to use for searching XML
documents.
My concern is that a 'simple' search on the XML document can retrieve wrong
results
if the search will ignore the fact that the XML have a schema inside
for example assuming I have simple XML

<FirstName>Juli a the Last<FirstName>
<LastName>Adria no<LastName>

Running query to look for 'Last' will also find the LastName 'Tag'


Have you tried XPath? That would be my first port of call.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
2519
by: jblazi | last post by:
I should like to search certain characters in a string and when they are found, I want to replace other characters in other strings that are at the same position (for a very simply mastermind game) for my pupils. This very simple thing does not seem simple at all. If I use strings, I cannot replace their parts (though I can use string.find for the searching). I think it is a bad idea that strings are not mutable, but I suspect that...
3
1942
by: sal achhala | last post by:
I'm working with java and XML documents in order to search for keywords in a given element name, eg element name 'author' == "jo blogs". The problem is the XML documents are downloaded (this process is automated) from different websites thus the element names for author may differ! Is their a way of dealing with this, such as perhaps a standard adopted by, say educational websites to agree on element names ? Thanks very much
6
1844
by: Mike King | last post by:
I have an XML document that I need to be displayed with a specific format/layout. I have been using XML for awhile now, but I'm not familiar with every XML technology out in use. What would be the best XML based technology to use for display and printing a document. I believe the technology or XML processor will need to be aware of the printer dimensions and screen dimensions so that it can format the document accordingly. Any help...
16
1546
by: Steven T. Hatton | last post by:
I wanted to take a look at the actual C Programming Language specification which provides the libraries used by C++ in the <c*> Headers. A couple days ago, I found it freely available on the internet. I originally assumed it was an older, or draft version. I'm pretty sure what I have is the same ISO/IEC 9899:1999, Programming languages ? C referenced in the C++ Standard. I'm now discovering that it is available in many places on the...
0
855
by: Kenneth P | last post by:
Hi, Visiting Microsofts download and searching for documents I can read that v2.6, 2.7 and 2.8 don´t support Microsoft jet (which I assume means access) and thus leaves me with MDAC 2.5. Is this versioin the latest that supports Microsoft Access DB? TIA Kenneth
2
2094
by: Spencer | last post by:
We have z/OS and DB2 v7. I have various fields on tables that I need to perform searching through using the LIKE operator and wildcards such as %. Currently on our million row plus tables the performance we are getting is like 25 seconds for this query to execute solely because have to do a table scan. I can't believe that there isn't a better way to do full text indexing for DB2 on z/OS such that I can get near sub-second response on...
3
2990
by: renjucool | last post by:
hi, i am working electronic document management system store documents word excel adobe in database in binary format in sql server 2005. i want to search the contents from the binary data.I am storing word documents in binary format in sql server table...how to search the contents inside the word document.What will b the search query Renjur Kochi
0
2467
by: ASPnewb1 | last post by:
Hello, I'm trying to execute a find command on my Excel obj to find if a value exists in only one column, not the whole worksheet, what I had before that works (if the whole worksheet is searched): ************************************************************************************* Microsoft.Office.Interop.Excel.Application ExcelObj = new Microsoft.Office.Interop.Excel.Application(); Workbook theWorkbook =...
0
901
jkmyoung
by: jkmyoung | last post by:
Our department has recently moved to storing word, excel, and pdf documents in sharepoint. However, searching for files within the site remains a problem. Does anyone have a link as to how to properly configure our document properties so that sharepoint has a easier time finding it? Should you put the title of the document in the description?
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10571
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10075
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9143
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5520
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.