programme java parcours un fichier XML et extraire des elements

S

soniambarek

Bonjour,
j'ai besoin d'aide s'il vous plais, je suis en train d’implémenter une approche et je suis bloquer dans une partie nécessite un programme java. Ce programme a pour but de parcourir un fichier XML et extraire des nœud vérifiant une condition. J'arrive déjà à parcourir le fichier et afficher le nœud mais j'arrive pas à vérifier le contrainte.
personne peux m'aider s'il vous plait!!!!!!
 
J

Jeff Higgins

Bonjour,
j'ai besoin d'aide s'il vous plais, je suis en train d’implémenter une approche et je suis bloquer dans une partie nécessite un programme java. Ce programme a pour but de parcourir un fichier XML et extraire des nœud vérifiant une condition. J'arrive déjà à parcourir le fichier et afficher le nœud mais j'arrive pas à vérifier le contrainte.
personne peux m'aider s'il vous plait!!!!!!
Can you express your constraint in the XPath language?
<http://docs.oracle.com/javase/7/docs/api/index.html?javax/xml/xpath/package-summary.html>
 
J

Jeff Higgins

... and express the question in the English language?

:)

(to enable those of us that do not read French to help)
Well, we have the Great Enabler (Google Translate). Unfortunate the
technology hasn't been worked into my newsreader yet.
 
J

Jeff Higgins

Well, we have the Great Enabler (Google Translate). Unfortunate the
technology hasn't been worked into my newsreader yet.

A couple of round trips.

Bonjour,
j'ai besoin d'aide s'il vous plais, je suis en train d’implémenter une
approche et je suis bloquer dans une partie nécessite un programme java.
Ce programme a pour but de parcourir un fichier XML et extraire des nœud
vérifiant une condition. J'arrive déjà à parcourir le fichier et
afficher le nœud mais j'arrive pas à vérifier le contrainte.
personne peux m'aider s'il vous plait!!!!!!

Hello,
I need help if you like me, I'm trying to implement an approach, and I'm
stuck in a part requires a java program. This program is designed to
browse an XML file and extract node satisfying a condition. I can
already browse the file and display the node but I can not check the
constraint.
can anyone help me please!!

Bonjour,
J'ai besoin d'aide si vous m'aimez, je suis en train de mettre en œuvre
une approche, et je suis coincé dans une partie exige un programme java.
Ce programme est conçu pour parcourir un fichier XML et extraire nœud
satisfaisant une condition. Je peux déjà parcourir le fichier et
afficher le nœud mais je ne peux pas vérifier la contrainte.
quelqu'un peut-il m'aider s'il vous plaît!

Hello,
I need help if you love me, I'm trying to implement an approach, and I'm
stuck in a game requires a java program. This program is designed to
navigate an XML file and extract node satisfies a condition. I can
already browse the file and display the node but I can not check the
constraint.
can someone help me please!

Bonjour,
J'ai besoin d'aide si vous m'aimez, je suis en train de mettre en œuvre
une approche, et je suis coincé dans un jeu nécessite un programme java.
Ce programme est conçu pour naviguer dans un fichier XML et extraire
nœud satisfait à une condition. Je peux déjà parcourir le fichier et
afficher le nœud mais je ne peux pas vérifier la contrainte.
quelqu'un peut m'aider s'il vous plaît!
 
J

Jeff Higgins

A couple of round trips.
The XPath language provides a simple, concise syntax for selecting
nodes from an XML document. XPath also provides rules for converting
a node in an XML document object model (DOM) tree to a boolean,
double, or string value. XPath is a W3C-defined language and an
official W3C recommendation; the W3C hosts the XML Path Language
(XPath) Version 1.0 specification.

XPath started in life in 1999 as a supplement to the XSLT and
XPointer languages, but has more recently become popular as a
stand-alone language, as a single XPath expression can be used to
replace many lines of DOM API code.

-----------------------------------------

Le langage XPath fournit une syntaxe simple, concise pour
sélectionner des noeuds d'un document XML. XPath offre également des
règles pour convertir un nœud dans un modèle objet de document XML
(DOM) de l'arbre à une valeur double, ou une chaîne booléenne.
XPath est un langage W3C défini et une recommandation officielle du W3C,
le W3C accueille la spécification XML Path Language (XPath) Version 1.0.

XPath a commencé dans la vie en 1999 en tant que supplément aux langues
XSLT et XPointer, mais a plus récemment devenu populaire en tant que
langue autonome, comme une expression XPath unique peut être utilisé
pour remplacer de nombreuses lignes de code de l'API DOM.

---------------------------------------

The XPath language provides a simple, concise syntax for selecting
nodes in an XML document. XPath also provides rules for converting a
node in a XML object (DOM) Document tree model to a double value, or a
boolean string. XPath is defined and an official W3C Recommendation W3C
language, the W3C hosts the XML Path Language specification (XPath)
Version 1.0.

XPath started in life in 1999 as a supplement to the XSLT and XPointer
languages​​, but has more recently become popular as an independent
language, such as single XPath expression can be used to replace many
lines of code in the DOM API .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top