PARSER DOM ET GÉNÉRATION DE JTREE

karim1758 Messages postés 7 Date d'inscription mercredi 19 mars 2003 Statut Membre Dernière intervention 4 août 2003 - 19 mars 2003 à 11:00
nadjet24 Messages postés 31 Date d'inscription mercredi 12 décembre 2007 Statut Membre Dernière intervention 8 mai 2008 - 14 avril 2008 à 19:31
Cette discussion concerne un article du site. Pour la consulter dans son contexte d'origine, cliquez sur le lien ci-dessous.

https://codes-sources.commentcamarche.net/source/15533-parser-dom-et-generation-de-jtree

nadjet24 Messages postés 31 Date d'inscription mercredi 12 décembre 2007 Statut Membre Dernière intervention 8 mai 2008
14 avril 2008 à 19:31
bonjour j'ai vos classes c'est tré structuré merci .Mais je n'arrive pas à l'éxcuter uen erreur s'affiche "project does not a main class set ", j'ignore où placer mon fichier xml pour avoir son arboressence merci.
nadjet24 Messages postés 31 Date d'inscription mercredi 12 décembre 2007 Statut Membre Dernière intervention 8 mai 2008
13 avril 2008 à 18:22
Bonjour j'ai utiliser vos quatres classes.J'ai arriver à l'éxcuter mais il ne s'affiche rien lors de l'éxécution quand j'inssère le fichier XML dans mon package de mon projet aprés ça une erreur s'affiche quand je l'ouvre à la fin de l'éxécution Impossible d'afficher l'entrée xml en utilisant la feuille de style , non valide au niveau <?xml version="1.0" encoding="UTF-8" ?>



voila mon exemple: <?xml version="1.0" encoding="UTF-8" ?>
- <tp:CollaborationProtocolProfile xmlns:tp="http://www.ebxml.org/namespaces/tradePartner" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xsi:schemaLocation="http://www.ebxml.org/namespaces/tradePartner http://ebxml.org/project_teams/trade_partner/cpp-cpa-v1_0.xsd" tp:version="1.1">
- <tp:PartyInfo>
<tp:PartyId tp:type="DUNS">123456789</tp:PartyId>
<tp:PartyRef tp:href="http://example.com/about.html" />
- <tp:CollaborationRole tp:id="N00">
<tp:ProcessSpecification tp:version="1.0" tp:name="buySell" xlink:type="simple" xlink:href="http://www.ebxml.org/processes/buySell.xml" />
<tp:Role tp:name="buyer" xlink:type="simple" xlink:href="http://ebxml.org/processes/buySell.xml#buyer" />
<tp:CertificateRef tp:certId="N03" />
- <tp:ServiceBinding tp:channelId="N04" tp:packageId="N0402">
<tp:Service tp:type="uriReference">uri:example.com/services/buyerService</tp:Service>
<tp:Override tp:action="orderConfirm" tp:channelId="N07" tp:packageId="N0402" xlink:href="http://ebxml.org/processes/buySell.xml#orderConfirm" xlink:type="simple" />
</tp:ServiceBinding>
</tp:CollaborationRole>
- <tp:Certificate tp:certId="N03">
<ds:KeyInfo />
</tp:Certificate>
- <tp:DeliveryChannel tp:channelId="N04" tp:transportId="N05" tp:docExchangeId="N06">
<tp:Characteristics tp:syncReplyMode="none" tp:nonrepudiationOfOrigin="true" tp:nonrepudiationOfReceipt="false" tp:secureTransport="true" tp:confidentiality="true" tp:authenticated="true" tp:authorized="false" />
</tp:DeliveryChannel>
- <tp:DeliveryChannel tp:channelId="N07" tp:transportId="N08" tp:docExchangeId="N06">
<tp:Characteristics tp:syncReplyMode="none" tp:nonrepudiationOfOrigin="true" tp:nonrepudiationOfReceipt="false" tp:secureTransport="false" tp:confidentiality="true" tp:authenticated="true" tp:authorized="false" />
</tp:DeliveryChannel>
- <tp:Transport tp:transportId="N05">
<tp:SendingProtocol tp:version="1.1">HTTP</tp:SendingProtocol>
<tp:ReceivingProtocol tp:version="1.1">HTTP</tp:ReceivingProtocol>
<tp:Endpoint tp:uri="https://www.example.com/servlets/ebxmlhandler" tp:type="allPurpose" />
- <tp:TransportSecurity>
<tp:Protocol tp:version="3.0">SSL</tp:Protocol>
<tp:CertificateRef tp:certId="N03" />
</tp:TransportSecurity>
</tp:Transport>
- <tp:Transport tp:transportId="N08">
<tp:SendingProtocol tp:version="1.1">HTTP</tp:SendingProtocol>
<tp:ReceivingProtocol tp:version="1.1">SMTP</tp:ReceivingProtocol>
<tp:Endpoint tp:uri="mailto:ebxmlhandler@example.com" tp:type="allPurpose" />
</tp:Transport>
- <tp:DocExchange tp:docExchangeId="N06">
- <tp:ebXMLBinding tp:version="0.98b">
- <tp:ReliableMessaging tp:deliverySemantics="OnceAndOnlyOnce" tp:idempotency="true" tp:messageOrderSemantics="Guaranteed">
<tp:Retries>5</tp:Retries>
<tp:RetryInterval>30</tp:RetryInterval>
<tp:PersistDuration>P1D</tp:PersistDuration>
</tp:ReliableMessaging>
- <tp:NonRepudiation>
<tp:Protocol>http://www.w3.org/2000/09/xmldsig#</tp:Protocol>
<tp:HashFunction>http://www.w3.org/2000/09/xmldsig#sha1</tp:HashFunction>
<tp:SignatureAlgorithm>http://www.w3.org/2000/09/xmldsig#dsa-sha1</tp:SignatureAlgorithm>
<tp:CertificateRef tp:certId="N03" />
</tp:NonRepudiation>
- <tp:DigitalEnvelope>
<tp:Protocol tp:version="2.0">S/MIME</tp:Protocol>
<tp:EncryptionAlgorithm>DES-CBC</tp:EncryptionAlgorithm>
<tp:CertificateRef tp:certId="N03" />
</tp:DigitalEnvelope>
</tp:ebXMLBinding>
</tp:DocExchange>
</tp:PartyInfo>
- <tp:Packaging tp:id="N0402">
<tp:ProcessingCapabilities tp:parse="true" tp:generate="true" />
- <tp:SimplePart tp:id="N40" tp:mimetype="text/xml">
<tp:NamespaceSupported tp:location="http://ebxml.org/project_teams/transport/messageService.xsd" tp:version="0.98b">http://www.ebxml.org/namespaces/messageService</tp:NamespaceSupported>
<tp:NamespaceSupported tp:location="http://ebxml.org/project_teams/transport/xmldsig-core-schema.xsd" tp:version="1.0">http://www.w3.org/2000/09/xmldsig</tp:NamespaceSupported>
</tp:SimplePart>
- <tp:SimplePart tp:id="N41" tp:mimetype="text/xml">
<tp:NamespaceSupported tp:location="http://ebxml.org/processes/buysell.xsd" tp:version="1.0">http://ebxml.org/processes/buysell.xsd</tp:NamespaceSupported>
</tp:SimplePart>
- <tp:CompositeList>
- <tp:Composite tp:id="N42" tp:mimetype="multipart/related" tp:mimeparameters="type=text/xml;">
<tp:Constituent tp:idref="N40" />
<tp:Constituent tp:idref="N41" />
</tp:Composite>
</tp:CompositeList>
</tp:Packaging>
<tp:Comment tp:xml_lang="en-us">buy/sell agreement between example.com and contrived-example.com</tp:Comment>
</tp:CollaborationProtocolProfile>
abdelouhab407b Messages postés 2 Date d'inscription lundi 10 octobre 2005 Statut Membre Dernière intervention 14 novembre 2007
22 janv. 2007 à 18:20
ba voila j'essaier d'executer cette source sur un fichier XML mais le compilateur ma returner ces erreurs:
Exception in thread "main" java.lang.NullPointerException
at org.apache.xerces.dom.DeepNodeListImpl.nextMatchingElementAfter(DeepNodeListImpl.java:233)
at org.apache.xerces.dom.DeepNodeListImpl.item(DeepNodeListImpl.java:180)
at pack_jcs.DomTreeMaker.makeTree(DomTreeMaker.java:57)
at pack_jcs.AffTree.(AffTree.java:23)
at pack_jcs.AffTree.main(AffTree.java:29)
je ne sais pas quoi faire mon fichier xml est de la forme :
<?xml version= "1.0" ?>
-
1.3.6.1
- <MGMT title="MGMT">
1.3.6.1.2
- <MIB title="MIB">
1.3.6.1.2.1
- <SYSTEM title="System">
1.3.6.1.2.1.1
<Sys title="sysDescr">1.3.6.1.2.1.1.1</Sys>
<Sys title="sysObjectID">1.3.6.1.2.1.1.2</Sys>
<Sys title="sysUpTime">1.3.6.1.2.1.1.3</Sys>
<Sys title="sysContact">1.3.6.1.2.1.1.4</Sys>
<Sys title="sysName">1.3.6.1.2.1.1.5</Sys>
<Sys title="sysLocation">1.3.6.1.2.1.1.6</Sys>
<Sys title="sysServices">1.3.6.1.2.1.1.7</Sys>
</SYSTEM>
-
1.3.6.1.2.1.2
1.3.6.1.2.1.2.1
-
1.3.6.1.2.1.2.2
1.3.6.1.2.1.2.2.1
1.3.6.1.2.1.2.2.1.1
1.3.6.1.2.1.2.2.1.2
1.3.6.1.2.1.2.2.1.3
1.3.6.1.2.1.2.2.1.4
1.3.6.1.2.1.2.2.1.5
1.3.6.1.2.1.2.2.1.6
1.3.6.1.2.1.2.2.1.7
1.3.6.1.2.1.2.2.1.8
1.3.6.1.2.1.2.2.1.9
1.3.6.1.2.1.2.2.1.10
1.3.6.1.2.1.2.2.1.11
1.3.6.1.2.1.2.2.1.12
1.3.6.1.2.1.2.2.1.13
1.3.6.1.2.1.2.2.1.14
1.3.6.1.2.1.2.2.1.15
1.3.6.1.2.1.2.2.1.16
1.3.6.1.2.1.2.2.1.17
1.3.6.1.2.1.2.2.1.18
1.3.6.1.2.1.2.2.1.19
1.3.6.1.2.1.2.2.1.20
1.3.6.1.2.1.2.2.1.21
1.3.6.1.2.1.2.2.1.22


-
1.3.6.1.2.1.3
-
1.3.6.1.2.1.3.1
-
1.3.6.1.2.1.3.1.1
1.3.6.1.2.1.3.1.1.1
1.3.6.1.2.1.3.1.1.2
1.3.6.1.2.1.3.1.1.3



-
1.3.6.1.2.1.4
1.3.6.1.2.1.4.1
1.3.6.1.2.1.4.2
1.3.6.1.2.1.4.3
1.3.6.1.2.1.4.4
1.3.6.1.2.1.4.5
1.3.6.1.2.1.4.6
1.3.6.1.2.1.4.7
1.3.6.1.2.1.4.8
1.3.6.1.2.1.4.9
1.3.6.1.2.1.4.10
1.3.6.1.2.1.4.11
1.3.6.1.2.1.4.12
1.3.6.1.2.1.4.13
1.3.6.1.2.1.4.14
1.3.6.1.2.1.4.15
1.3.6.1.2.1.4.16
1.3.6.1.2.1.4.17
1.3.6.1.2.1.4.18
1.3.6.1.2.1.4.19
-
1.3.6.1.2.1.4.20
-
1.3.6.1.2.1.4.20.1
1.3.6.1.2.1.4.20.1.1
1.3.6.1.2.1.4.20.1.2
1.3.6.1.2.1.4.20.1.3
1.3.6.1.2.1.4.20.1.4
1.3.6.1.2.1.4.20.1.5


-
1.3.6.1.2.1.4.21
1.3.6.1.2.1.4.21.1.1
1.3.6.1.2.1.4.21.1.2
1.3.6.1.2.1.4.21.1.3
1.3.6.1.2.1.4.21.1.4
1.3.6.1.2.1.4.21.1.5
1.3.6.1.2.1.4.21.1.6
1.3.6.1.2.1.4.21.1.7
1.3.6.1.2.1.4.21.1.8
1.3.6.1.2.1.4.21.1.9
1.3.6.1.2.1.4.21.1.10
1.3.6.1.2.1.4.21.1.11

-
1.3.6.1.2.1.4.22
-
1.3.6.1.2.1.4.22.1
1.3.6.1.2.1.4.22.1.1
1.3.6.1.2.1.4.22.1.2
1.3.6.1.2.1.4.22.1.3
1.3.6.1.2.1.4.22.1.4



-
1.3.6.1.2.1.5
1.3.6.1.2.1.5.1
1.3.6.1.2.1.5.2
1.3.6.1.2.1.5.3
1.3.6.1.2.1.5.4
1.3.6.1.2.1.5.5
1.3.6.1.2.1.5.6
1.3.6.1.2.1.5.7
1.3.6.1.2.1.5.8
1.3.6.1.2.1.5.9
1.3.6.1.2.1.5.10
1.3.6.1.2.1.5.11
1.3.6.1.2.1.5.12
1.3.6.1.2.1.5.13
1.3.6.1.2.1.5.14
1.3.6.1.2.1.5.15
1.3.6.1.2.1.5.16
1.3.6.1.2.1.5.17
1.3.6.1.2.1.5.18
1.3.6.1.2.1.5.19
1.3.6.1.2.1.5.20
1.3.6.1.2.1.5.21
1.3.6.1.2.1.5.22
1.3.6.1.2.1.5.23
1.3.6.1.2.1.5.24
1.3.6.1.2.1.5.25
1.3.6.1.2.1.5.26

- <TCP title ="Tcp">
1.3.6.1.2.1.6
<tcp title="tcpRtoAlgorithm">1.3.6.1.2.1.6.1</tcp>
<tcp title="tcpRtoMin">1.3.6.1.2.1.6.2</tcp>
<tcp title="tcpRtoMax">1.3.6.1.2.1.6.3</tcp>
<tcp title="tcpMaxConn">1.3.6.1.2.1.6.4</tcp>
<tcp title="tcpActiveOpens">1.3.6.1.2.1.6.5</tcp>
<tcp title="tcpPassiveOpens">1.3.6.1.2.1.6.6</tcp>
<tcp title="tcpAttemptFails">1.3.6.1.2.1.6.7</tcp>
<tcp title="tcpEstbResets">1.3.6.1.2.1.6.8</tcp>
<tcp title="tcpCurrEstab">1.3.6.1.2.1.6.9</tcp>
<tcp title="tcpInSegs">1.3.6.1.2.1.6.10</tcp>
<tcp title="tcpOutSegs">1.3.6.1.2.1.6.11</tcp>
<tcp title="tcpRetransSegs">1.3.6.1.2.1.6.12</tcp>
- <tcp title="tcpConnTable">
1.3.6.1.2.1.6.13
- <tcp title="tcpConnEntry">
1.3.6.1.2.1.6.13.1
<tcp title="tcpConnState">1.3.6.1.2.1.6.13.1.1</tcp>
<tcp title="tcpConnLocalAddress">1.3.6.1.2.1.6.13.1.2</tcp>
<tcp title="tcpConnLocalPort">1.3.6.1.2.1.6.13.1.3</tcp>
<tcp title="tcpConnRemAddress">1.3.6.1.2.1.6.13.1.4</tcp>
<tcp title="tcpConnRemPort">1.3.6.1.2.1.6.13.1.5</tcp>
</tcp>
</tcp>
<tcp title="tcpInErrs">1.3.6.1.2.1.6.14</tcp>
<tcp title= "tcpOutRsts">1.3.6.1.2.1.6.15</tcp>
</TCP>
-
1.3.6.1.2.1.7
1.3.6.1.2.1.7.1
1.3.6.1.2.1.7.2
1.3.6.1.2.1.7.3
1.3.6.1.2.1.7.4
-
1.3.6.1.2.1.7.5
-
1.3.6.1.2.1.7.5.1
1.3.6.1.2.1.7.5.1.1
1.3.6.1.2.1.7.5.1.2



- <EGP title ="Egp">
1.3.6.1.2.1.8
<egp title="egpInMsgs">1.3.6.1.2.1.8.1</egp>
<egp title="egpInErrors">1.3.6.1.2.1.8.2</egp>
<egp title="egpOutMsgs">1.3.6.1.2.1.8.3</egp>
<egp title="egpOutErrors">1.3.6.1.2.1.8.4</egp>
- <egp title="egpNeighTable">
1.3.6.1.2.1.8.5
- <egp title="egpNeighEntry">
1.3.6.1.2.1.8.5.1
<egp title="egpNeighState">1.3.6.1.2.1.8.5.1.1</egp>
<egp title="egpNeighAddr">1.3.6.1.2.1.8.5.1.2</egp>
<egp title="egpNeighAs">1.3.6.1.2.1.8.5.1.3</egp>
<egp title="egpNeighInMsgs">1.3.6.1.2.1.8.5.1.4</egp>
<egp title="egpNeighInErrs">1.3.6.1.2.1.8.5.1.5</egp>
<egp title="egpNeighOutMsgs">1.3.6.1.2.1.8.5.1.6</egp>
<egp title="egpNeighOutErrs">1.3.6.1.2.1.8.5.1.7</egp>
<egp title="egpNeighInErrMsgs">1.3.6.1.2.1.8.5.1.8</egp>
<egp title="egpNeighOutErrMsgs">1.3.6.1.2.1.8.5.1.9</egp>
<egp title="egpNeighStateUps">1.3.6.1.2.1.8.5.1.10</egp>
<egp title="egpNeighStateDowns">1.3.6.1.2.1.8.5.1.11</egp>
<egp title="egpNeighIntervalHello">1.3.6.1.2.1.8.5.1.12</egp>
<egp title="egpNeighIntervalPoll">1.3.6.1.2.1.8.5.1.13</egp>
<egp title="egpNeighMode">1.3.6.1.2.1.8.5.1.14</egp>
<egp title="egpNeighEventTrigger">1.3.6.1.2.1.8.5.1.15</egp>
</egp>
</egp>
<egp title="egpAs">1.3.6.1.2.1.8.6</egp>
</EGP>
- <SNMP title="Snmp">
1.3.6.1.2.1.11
<snmp title="snmpInPkts">1.3.6.1.2.1.11.1</snmp>
<snmp title="snmpOutPkts">1.3.6.1.2.1.11.2</snmp>
<snmp title="snmpInBadVersions">1.3.6.1.2.1.11.3</snmp>
<snmp title="snmpInBadCommunityNames">1.3.6.1.2.1.11.4</snmp>
<snmp title="snmpInBadCommunityUses">1.3.6.1.2.1.11.5</snmp>
<snmp title="snmpInASNParseErrs">1.3.6.1.2.1.11.6</snmp>
<snmp title="snmpInBadTypes">1.3.6.1.2.1.11.7</snmp>
<snmp title="snmpInTooBigs">1.3.6.1.2.1.11.8</snmp>
<snmp title="snmpInNoSuchNames">1.3.6.1.2.1.11.9</snmp>
<snmp title="snmpInBadValues">1.3.6.1.2.1.11.10</snmp>
<snmp title="snmpInReadOnlys">1.3.6.1.2.1.11.11</snmp>
<snmp title="snmpInGenErrs">1.3.6.1.2.1.11.12</snmp>
<snmp title="snmpInTotalReqVars">1.3.6.1.2.1.11.13</snmp>
<snmp title="snmpInTotalSetVars">1.3.6.1.2.1.11.14</snmp>
<snmp title="snmpInGetRequests">1.3.6.1.2.1.11.15</snmp>
<snmp title="snmpInGetNexts">1.3.6.1.2.1.11.16</snmp>
<snmp title="snmpInSetRequests">1.3.6.1.2.1.11.17</snmp>
<snmp title="snmpInGetResponses">1.3.6.1.2.1.11.18</snmp>
<snmp title="snmpInTraps">1.3.6.1.2.1.11.19</snmp>
<snmp title="snmpOutTooBigs">1.3.6.1.2.1.11.20</snmp>
<snmp title="snmpOutNoSuchNames">1.3.6.1.2.1.11.21</snmp>
<snmp title="snmpOutBadValues">1.3.6.1.2.1.11.22</snmp>
<snmp title="snmpOutReadOnlys">1.3.6.1.2.1.11.23</snmp>
<snmp title="snmpOutGetErrs">1.3.6.1.2.1.11.24</snmp>
<snmp title="snmpOutGetRequests">1.3.6.1.2.1.11.25</snmp>
<snmp title="snmpOutGetNexts">1.3.6.1.2.1.11.26</snmp>
<snmp title="snmpOutSetRequests">1.3.6.1.2.1.11.27</snmp>
<snmp title="snmpOutGetResponses">1.3.6.1.2.1.11.28</snmp>
<snmp title="snmpOutTraps">1.3.6.1.2.1.11.29</snmp>
<snmp title="snmpEnableAuthTraps">1.3.6.1.2.1.11.30</snmp>
</SNMP>
</MIB>
</MGMT>
-
1.3.6.1.4
- <ENTERPRISE title="ENTERPRISE">
- <MS title="Microsoft">
1.3.6.1.4.1.311
- <ms title="Software">
1.3.6.1.4.1.311.1
<ms title="Systems">1.3.6.1.4.1.311.1.1</ms>
<ms title="Wins">1.3.6.1.4.1.311.1.2</ms>
<ms title="Dhcp">1.3.6.1.4.1.311.1.3</ms>
- <ms title="Internet Server">
1.3.6.1.4.1.311.1.7
- <ms title="Ftp Server">
1.3.6.1.4.1.311.1.7.2
<ms title="totalFilesSent">1.3.6.1.4.1.311.1.7.2.1.5</ms>
<ms title="totalFilesReceived">1.3.6.1.4.1.311.1.7.2.1.6</ms>
<ms title="currentAnonymousUsers">1.3.6.1.4.1.311.1.7.2.1.7</ms>
<ms title="currentNonAnonymousUsers">1.3.6.1.4.1.311.1.7.2.1.8</ms>
<ms title="currentConnections">1.3.6.1.4.1.311.1.7.2.1.13</ms>
<ms title="maxConnections">1.3.6.1.4.1.311.1.7.2.1.14</ms>
</ms>
- <ms title="HTTP Server">
1.3.6.1.4.1.311.1.7.3
<ms title="currentAnonymousUsers">1.3.6.1.4.1.311.1.7.3.1.6</ms>
<ms title="currentNonAnonymousUsers">1.3.6.1.4.1.311.1.7.3.1.7</ms>
<ms title="currentConnections">1.3.6.1.4.1.311.1.7.3.1.13</ms>
<ms title="maxConnections">1.3.6.1.4.1.311.1.7.3.1.14</ms>
<ms title="totalGets">1.3.6.1.4.1.311.1.7.3.1.16</ms>
<ms title="totalPosts">1.3.6.1.4.1.311.1.7.3.1.17</ms>
<ms title="totalCGIRequests">1.3.6.1.4.1.311.1.7.3.1.20</ms>
<ms title="totalNotFoundErrors">1.3.6.1.4.1.311.1.7.3.1.22</ms>
</ms>
</ms>
</ms>
</MS>
- <CISCO title="Cisco">
1.3.6.1.4.1.9
- <cisco title="Product">
1.3.6.1.4.1.9.1
<cisco title="gateway-server">1.3.6.1.4.1.9.1.1</cisco>
<cisco title="terminal-server">1.3.6.1.4.1.9.1.2</cisco>
<cisco title="trouter">1.3.6.1.4.1.9.1.3</cisco>
<cisco title="protocol translator">1.3.6.1.4.1.9.1.4</cisco>
<cisco title="igs">1.3.6.1.4.1.9.1.5</cisco>
</cisco>
- <cisco title="Local">
1.3.6.1.4.1.9.2
- <cisco title="lsystem">
1.3.6.1.4.1.9.2.1
<cisco title="romId">1.3.6.1.4.1.9.2.1.1</cisco>
<cisco title="whyReload">1.3.6.1.4.1.9.2.1.2</cisco>
<cisco title="hostName">1.3.6.1.4.1.9.2.1.3</cisco>
<cisco title="domainName">1.3.6.1.4.1.9.2.1.4</cisco>
<cisco title="authAddr">1.3.6.1.4.1.9.2.1.5</cisco>
<cisco title="bootHost">1.3.6.1.4.1.9.2.1.6</cisco>
<cisco title="ping">1.3.6.1.4.1.9.2.1.7</cisco>
<cisco title="freeMemory">1.3.6.1.4.1.9.2.1.8</cisco>
<cisco title="netConfigIP">1.3.6.1.4.1.9.2.1.48</cisco>
<cisco title="netConfigName">1.3.6.1.4.1.9.2.1.49</cisco>
<cisco title="hostConfigIP">1.3.6.1.4.1.9.2.1.51</cisco>
<cisco title="hostConfigName">1.3.6.1.4.1.9.2.1.52</cisco>
<cisco title="CPUbusyPercentage">1.3.6.1.4.1.9.2.1.56</cisco>
<cisco title="CPUavgBusy1">1.3.6.1.4.1.9.2.1.57</cisco>
<cisco title="CPUavgBusy5">1.3.6.1.4.1.9.2.1.58</cisco>
</cisco>
- <cisco title="linterfaces">
1.3.6.1.4.1.9.2.2
- <cisco title="lifTable">
1.3.6.1.4.1.9.2.2.1
- <cisco title="lifEntry">
1.3.6.1.4.1.9.2.2.1.1
<cisco title="locIfHardType">1.3.6.1.4.1.9.2.2.1.1.1</cisco>
<cisco title="locIfLineProt">1.3.6.1.4.1.9.2.2.1.1.2</cisco>
<cisco title="locIfLastIn">1.3.6.1.4.1.9.2.2.1.1.3</cisco>
<cisco title="locIfLastOut">1.3.6.1.4.1.9.2.2.1.1.4</cisco>
<cisco title="locIfBitsSec">1.3.6.1.4.1.9.2.2.1.1.6</cisco>
<cisco title="locIfInPktsSec">1.3.6.1.4.1.9.2.2.1.1.7</cisco>
<cisco title="locIfOutBitsSec">1.3.6.1.4.1.9.2.2.1.1.8</cisco>
<cisco title="locIfOutPktsSec">1.3.6.1.4.1.9.2.2.1.1.9</cisco>
</cisco>
</cisco>
</cisco>
<cisco title="lat">1.3.6.1.4.1.9.2.3</cisco>
<cisco title="lip">1.3.6.1.4.1.9.2.4</cisco>
<cisco title="licmp">1.3.6.1.4.1.9.2.5</cisco>
<cisco title="ltcp">1.3.6.1.4.1.9.2.6</cisco>
<cisco title="ludp">1.3.6.1.4.1.9.2.7</cisco>
<cisco title="legp">1.3.6.1.4.1.9.2.8</cisco>
<cisco title="lts">1.3.6.1.4.1.9.2.9</cisco>
</cisco>
- <cisco title="Temporary">
1.3.6.1.4.1.9.3
<cisco title="decnet">1.3.6.1.4.1.9.3.1</cisco>
<cisco title="xns">1.3.6.1.4.1.9.3.2</cisco>
<cisco title="appletalk">1.3.6.1.4.1.9.3.3</cisco>
<cisco title="novell">1.3.6.1.4.1.9.3.4</cisco>
<cisco title="vines">1.3.6.1.4.1.9.3.5</cisco>
</cisco>
</CISCO>
- <HP title="HP">
1.3.6.1.4.1.11
- <hp title="nm">
1.3.6.1.4.1.11.2
- <hp title="System">
1.3.6.1.4.1.11.2.3
- <hp title="general">
1.3.6.1.4.1.11.2.3.1
- <hp title="ComputerSystem">
1.3.6.1.4.1.11.2.3.1.1
<hp title="sysUpTime">1.3.6.1.4.1.11.2.3.1.1.1</hp>
<hp title="sysUsers">1.3.6.1.4.1.11.2.3.1.1.2</hp>
<hp title="sysAvgJobs1">1.3.6.1.4.1.11.2.3.1.1.3</hp>
<hp title="sysAvgJobs5">1.3.6.1.4.1.11.2.3.1.1.4</hp>
<hp title="sysAvgJobs15">1.3.6.1.4.1.11.2.3.1.1.5</hp>
<hp title="sysMaxProcess">1.3.6.1.4.1.11.2.3.1.1.6</hp>
<hp title="sysFreeMemory">1.3.6.1.4.1.11.2.3.1.1.7</hp>
<hp title="sysPhysMemory">1.3.6.1.4.1.11.2.3.1.1.8</hp>
<hp title="sysMaxUserMemory">1.3.6.1.4.1.11.2.3.1.1.9</hp>
<hp title="sysSwapConfig">1.3.6.1.4.1.11.2.3.1.1.10</hp>
<hp title="sysEnabledSwap">1.3.6.1.4.1.11.2.3.1.1.11</hp>
<hp title="sysFreeSwap">1.3.6.1.4.1.11.2.3.1.1.12</hp>
<hp title="sysUserCPU">1.3.6.1.4.1.11.2.3.1.1.13</hp>
<hp title="sysSysCPU">1.3.6.1.4.1.11.2.3.1.1.14</hp>
<hp title="sysIdleCPU">1.3.6.1.4.1.11.2.3.1.1.15</hp>
<hp title="sysNiceCPU">1.3.6.1.4.1.11.2.3.1.1.16</hp>
</hp>
- <hp title="fileSystem">
1.3.6.1.4.1.11.2.3.1.2
<hp title="fileSystemMounted">1.3.6.1.4.1.11.2.3.1.2.1</hp>
- <hp title="fileSystemTable">
1.3.6.1.4.1.11.2.3.1.2.2
- <hp title="filesystemEntry">
1.3.6.1.4.1.11.2.3.1.2.2.1
<hp title="fileSystemName">1.3.6.1.4.1.11.2.3.1.2.2.1.3</hp>
<hp title="fileSystemBlock">1.3.6.1.4.1.11.2.3.1.2.2.1.4</hp>
<hp title="fileSystemBlockFree">1.3.6.1.4.1.11.2.3.1.2.2.1.5</hp>
</hp>
</hp>
</hp>
- <hp title="Processes">
1.3.6.1.4.1.11.2.3.1.4
<hp title="processNumber">1.3.6.1.4.1.11.2.3.1.4.1</hp>
- <hp title="processTable">
1.3.6.1.4.1.11.2.3.1.4.2
- <hp title="processEntry">
1.3.6.1.4.1.11.2.3.1.4.2.1
<hp title="processPID">1.3.6.1.4.1.11.2.3.1.4.2.1.1</hp>
<hp title="processParentPID">1.3.6.1.4.1.11.2.3.1.4.2.1.4</hp>
<hp title="processAddr">1.3.6.1.4.1.11.2.3.1.4.2.1.13</hp>
<hp title="processUserTime">1.3.6.1.4.1.11.2.3.1.4.2.1.15</hp>
<hp title="processSysTime">1.3.6.1.4.1.11.2.3.1.4.2.1.16</hp>
<hp title="processStatus">1.3.6.1.4.1.11.2.3.1.4.2.1.19</hp>
<hp title="processCmd">1.3.6.1.4.1.11.2.3.1.4.2.1.22</hp>
<hp title="processPercentCPU">1.3.6.1.4.1.11.2.3.1.4.2.1.27</hp>
<hp title="processUserName">1.3.6.1.4.1.11.2.3.1.4.2.1.30</hp>
</hp>
</hp>
</hp>
<hp title="Cluster">1.3.6.1.4.1.11.2.3.1.5</hp>
</hp>
<hp title="hpux">1.3.6.1.4.1.11.2.3.2</hp>
<hp title="hpsun">1.3.6.1.4.1.11.2.3.10</hp>
</hp>
<hp title="Interface">1.3.6.1.4.1.11.2.4</hp>
<hp title="Icmp">1.3.6.1.4.1.11.2.7</hp>
<hp title="Snmp">1.3.6.1.4.1.11.2.13</hp>
- <hp title="OpenView">
1.3.6.1.4.1.11.2.17
<hp title="openViewTrapVars">1.3.6.1.4.1.11.2.17.2</hp>
- <hp title="hpOVDistribStation">
1.3.6.1.4.1.11.2.17.4
<hp title="hpOVNetmon">1.3.6.1.4.1.11.2.17.4.4</hp>
</hp>
</hp>
</hp>
</HP>
<SUN title="Sun Microsystem">1.3.6.1.4.1.42</SUN>
- <NS title="NetScreen">
1.3.6.1.4.1.3224
- <ns title="traps">
1.3.6.1.4.1.3224.1
<ns title="TrapType">1.3.6.1.4.1.3224.1.1</ns>
<ns title="TrapDesc">1.3.6.1.4.1.3224.1.3</ns>
</ns>
- <ns title="Intrusion Detect Service">
1.3.6.1.4.1.3224.2
<ns title="nsIdsProtect">1.3.6.1.4.1.3224.2.1</ns>
<ns title="nsIdsAttkMonTable">1.3.6.1.4.1.3224.2.2</ns>
</ns>
- <ns title="VPN">
1.3.6.1.4.1.3224.3
<ns title="netscreenVpnMon">1.3.6.1.4.1.3224.3.1</ns>
<ns title="nsVpnManualKey">1.3.6.1.4.1.3224.3.2</ns>
<ns title="nsVpnIke">1.3.6.1.4.1.3224.3.3</ns>
<ns title="nsVpnGateway">1.3.6.1.4.1.3224.3.4</ns>
<ns title="nsVpnPhaseOneCfg">1.3.6.1.4.1.3224.3.5</ns>
<ns title="nsVpnPhaseTwoCfg">1.3.6.1.4.1.3224.3.6</ns>
<ns title="nsVpnCert">1.3.6.1.4.1.3224.3.7</ns>
<ns title="nsVpnL2TP">1.3.6.1.4.1.3224.3.8</ns>
<ns title="nsVpnIpPool">1.3.6.1.4.1.3224.3.9</ns>
<ns title="nsVpnUser">1.3.6.1.4.1.3224.3.10</ns>
</ns>
- <ns title="Qos Management">
1.3.6.1.4.1.3224.4
<ns title="nsQosUsrShapingMode">1.3.6.1.4.1.3224.4.1</ns>
<ns title="nsQosSysShapingMode">1.3.6.1.4.1.3224.4.2</ns>
<ns title="nsQosPolicy">1.3.6.1.4.1.3224.4.3</ns>
</ns>
- <ns title="NSRP">
1.3.6.1.4.1.3224.5
<ns title="nsNsrpGeneral">1.3.6.1.4.1.3224.5.1</ns>
<ns title="nsNsrpVSD">1.3.6.1.4.1.3224.5.2</ns>
<ns title="nsNsrpRTO">1.3.6.1.4.1.3224.5.3</ns>
<ns title="nsNsrpTrack">1.3.6.1.4.1.3224.5.4</ns>
<ns title="nsNsrpCluster">1.3.6.1.4.1.3224.5.5</ns>
<ns title="nsNsrpLinkInfo">1.3.6.1.4.1.3224.5.6</ns>
</ns>
<ns title="Device Setting">1.3.6.1.4.1.3224.6</ns>
- <ns title="Zone">
1.3.6.1.4.1.3224.7
<ns title="nsZoneCfg">1.3.6.1.4.1.3224.7.1</ns>
</ns>
- <ns title="Interface">
1.3.6.1.4.1.3224.8
<ns title="nsIfPrimaryIpTable">1.3.6.1.4.1.3224.8.1</ns>
<ns title="nsIfSecondaryIpTable">1.3.6.1.4.1.3224.8.2</ns>
</ns>
- <ns title="Policy Info">
1.3.6.1.4.1.3224.9
<ns title="nsPlyTable">1.3.6.1.4.1.3224.9.1</ns>
</ns>
<ns title="NatSetting">1.3.6.1.4.1.3224.10</ns>
- <ns title="Address Info">
1.3.6.1.4.1.3224.11
<ns title="nsAddrTable">1.3.6.1.4.1.3224.11.1</ns>
</ns>
<ns title="Service Info">1.3.6.1.4.1.3224.12</ns>
<ns title="Schedule">1.3.6.1.4.1.3224.13</ns>
<ns title="Vsys">1.3.6.1.4.1.3224.14</ns>
<ns title="Resource">1.3.6.1.4.1.3224.15</ns>
<ns title="IP MIP">1.3.6.1.4.1.3224.16</ns>
<ns title="Chasis">1.3.6.1.4.1.3224.17</ns>
</NS>
</ENTERPRISE>




merci d'avance
cs_papillon2000 Messages postés 94 Date d'inscription dimanche 30 avril 2006 Statut Membre Dernière intervention 21 juin 2010
10 juin 2006 à 14:24
salut a tous, est ce que quel à utiliser le parseur rdf ou a une idée sur son utilisation, c'est vraiment urgent, merci.
benabid22 Messages postés 2 Date d'inscription dimanche 22 janvier 2006 Statut Membre Dernière intervention 19 février 2006
19 févr. 2006 à 18:14
bon je vaudrais savoir l'utilité de resolve.jar
mouradoo Messages postés 1 Date d'inscription jeudi 29 septembre 2005 Statut Membre Dernière intervention 6 octobre 2005
6 oct. 2005 à 15:54
Salut tout le monde
L'exécution s'est faite sans failles sur l'ide Eclipse3.0,
sauf que l'affichage ajoute pour les noeuds sans attribut une feuille attribute
par défaut.
Yrgogerg Messages postés 1 Date d'inscription mardi 6 juillet 2004 Statut Membre Dernière intervention 6 juillet 2004
6 juil. 2004 à 16:48
Ca ne peut pas fonctionner : dans trouveAttribut (DomTools.java) pour que cela puisse fonctionner, il faut faire le new HashMap(); dans le for sinon chaque nouvel attribut écrase le précedent lors du put puisqu'on y écrit toujours les champ "nom" et "valeur" !
De plus, je ne vois pas bien l'intérêt d'utiliser une hashmap pour uniquement 2 champs : "nom" et "valeur" (le nombre ne varie pas). Tout cela me parait bien compliqué ! Un tableau de 2 chaines permet de stocker nom et valeur plus simplement ! On mettra ensuite ces tableaux dans le vecteur...

Je n'ai pas creusé la suite...
ralary Messages postés 25 Date d'inscription mercredi 23 avril 2003 Statut Membre Dernière intervention 14 septembre 2007
8 juin 2004 à 11:19
et bah moi pire !!
j'ai deja suivi les commentaires et j'ai mis le .jar dans le repertoire de mon projet mais point .
error : cannot resolve symbol
symbol : class DOMParser
c'est à dire il ignore la classe DOMParser
ralary Messages postés 25 Date d'inscription mercredi 23 avril 2003 Statut Membre Dernière intervention 14 septembre 2007
8 juin 2004 à 11:19
et bah moi pire !!
j'ai deja suivi les commentaires et j'ai mis le .jar dans le repertoire de mon projet mais point .
error : cannot resolve symbol
symbol : class DOMParser
c'est à dire il ignore la classe DOMParser
ralary Messages postés 25 Date d'inscription mercredi 23 avril 2003 Statut Membre Dernière intervention 14 septembre 2007
8 juin 2004 à 10:14
et bah moi pire !!
j'ai deja suivi les commentaires et j'ai mis le .jar dans le repertoire de mon projet mais point .
error : cannot resolve symbol
symbol : class DOMParser
c'est à dire il ignore la classe DOMParser
yannickoy Messages postés 1 Date d'inscription jeudi 6 mai 2004 Statut Membre Dernière intervention 6 mai 2004
6 mai 2004 à 18:36
houla oops !
bonjour les gens, j'aurais comme un soucis !
je suis nouvel utilisateur de eclipse project et je n'arrive pas du tout a faire tourner le truk ! (et java je débute)
en gros il ne connait pas DOMParser ...
et c tout en plus !
merci pour les réponses si yen a !

;o)
fraoustin Messages postés 3 Date d'inscription lundi 26 avril 2004 Statut Membre Dernière intervention 26 avril 2004
26 avril 2004 à 11:43
j'ai trouvé la solution
il faut écrire
while ((pos = pos.getNextSibling().getNextSibling()) != null)
{fils.addElement(pos.getLocalName());};

merci pour vos réponse rapide
fraoustin Messages postés 3 Date d'inscription lundi 26 avril 2004 Statut Membre Dernière intervention 26 avril 2004
26 avril 2004 à 10:46
en faite l'erreur n'est pas exactement la même c'est la ligne 59 de DomTreeMaker qui est incriminé)
cette ligne est
while ((pos = pos.getNextSibling().getNextSibling()) != null)
fils.addElement(pos.getLocalName());
quelqu'un peux m'aider?
merci
logarfr Messages postés 23 Date d'inscription mardi 25 mars 2003 Statut Membre Dernière intervention 30 juin 2004
26 avril 2004 à 09:11
De mémoire, le fichier XML doit être du type :

<?xml version="1.0" encoding="ISO-8859-1"?>

<toto>
<toto1>Ex1</toto2>
<toto2>Ex2</toto2>
<toto2>Ex3</toto2>
</toto>


Je pense que tu peux copier ca dans un fichier xml et tester mais je suis casi sur que c'est comme ca la syntaxe du type de fichier qui est demandé. Après tu peux le modifier à ta volonté at ça grace au réseau CODES SOURCES et Duss !
fraoustin Messages postés 3 Date d'inscription lundi 26 avril 2004 Statut Membre Dernière intervention 26 avril 2004
26 avril 2004 à 08:58
j'ai le même problème

java.lang.NullPointerException
at DomTreeMaker.makeTree(DomTreeMaker.java:42)
at AffTree.(AffTree.java:15)
at AffTree.main(AffTree.java:21)

alors si quelu'un pouvait m'aider en me disant quel fichier xml il faut utiliser (avec un ex cela serait sympa)
merci
logarfr Messages postés 23 Date d'inscription mardi 25 mars 2003 Statut Membre Dernière intervention 30 juin 2004
9 avril 2004 à 14:21
c'est bon j'arrive à la faire marcher

En fait c'était un PB de xml!

Merci
logarfr Messages postés 23 Date d'inscription mardi 25 mars 2003 Statut Membre Dernière intervention 30 juin 2004
9 avril 2004 à 12:05
juste un petit éclaircissement, si ca peut t'aider ligne 42 de DomTreeMaker.java pour moi il y a :

fils.addElement(pos.getLocalName());

la ligne 15 de AffTree.java :

JScrollPane treeView = new JScrollPane(DomTreeMaker.makeTree("liste"));

et la ligne 21 :

AffTree a = new AffTree();

Voila, je crois que c'est les ligne ou il y a les erreurs que JBuilder donne donc les voila

Merci encore
@++
logarfr Messages postés 23 Date d'inscription mardi 25 mars 2003 Statut Membre Dernière intervention 30 juin 2004
9 avril 2004 à 11:59
salut!

J'ai essayé ton code mais j'ai une erreur lors de l'exécution (la compilation se fait sans problème) :

java.lang.NullPointerException
at DomTreeMaker.makeTree(DomTreeMaker.java:42)
at AffTree.(AffTree.java:15)
at AffTree.main(AffTree.java:21)

J'utilise JBuilder et j'ai mis un ficher xml bidon dans le répertiore.

Voila, merci!
lacagne Messages postés 1 Date d'inscription jeudi 11 mars 2004 Statut Membre Dernière intervention 11 mars 2004
11 mars 2004 à 20:00
Bonjour
j'ai un petit souci avec xerces
a quel endroit dois je le mettre pour ne plus avoir de message d'erreur au niveau de l'import du parser dom

merci d'avance
stargraft Messages postés 4 Date d'inscription mardi 8 avril 2003 Statut Membre Dernière intervention 16 août 2004
18 juil. 2003 à 11:23
Salut,

J'ai un problème lorsque je compile la classe DomTreeMaker.
J'ai le message suivaant :

D:DownloadExcel estarbreDomTreeMaker.java:42: cannot resolve symbol
symbol : method getLocalName ()
location: interface org.w3c.dom.Element
DefaultMutableTreeNode top = new DefaultMutableTreeNode(database.getLocalName());

Peux-tu m'aider stp.
Merci d'avance.
cs_Duss Messages postés 890 Date d'inscription lundi 8 avril 2002 Statut Membre Dernière intervention 29 juillet 2004 11
21 mai 2003 à 12:25
heu ben c est la structure des fichiers que font ma source qui genere des fichiers xml !!
je vais voir si j en retrouve un ;)
effectivement, ma source est pour une structure de fichiers, elle est la pour montrer les methodes a utiliser mais il faut modifier la recupération des noeuds et des attributs en fonction de ta structure a toi ;)
Duss
cs_prey Messages postés 7 Date d'inscription lundi 12 mai 2003 Statut Membre Dernière intervention 21 mai 2003
21 mai 2003 à 10:50
Hello,
peux-tu me donner la struture de ton fichier xml pour tester, car avec le mien ca ne marche pas :o(
merci
cs_Duss Messages postés 890 Date d'inscription lundi 8 avril 2002 Statut Membre Dernière intervention 29 juillet 2004 11
20 mai 2003 à 18:22
alors,
la effectivement il faut que le fichier soit a la racine de ton repertoire ainsi que toutes les classes !!
sinon, si ton fichier et dans un sous rep "xml" par exemple,
tu passes "./xml/fichier.xml" en argument.
Ensuite dans la classe DomTreeMaker, tu peux modifier :
try
{
parser.parse(fileName);
}
catch (SAXException e)
{
}
catch (IOException e)
{
}
en
try
{
parser.parse(fileName);
}
catch (SAXException e)
{
System.out.println(e.getMessage();
}
catch (IOException e)
{
System.out.println(e.getMessage();
}
pour t afficher les exceptions au cas ou ;)
c est vrai que j avais oublié de le mettre
Duss
cs_prey Messages postés 7 Date d'inscription lundi 12 mai 2003 Statut Membre Dernière intervention 21 mai 2003
20 mai 2003 à 17:41
Salut, c encore moa !
J'ai réussi à intégrer ton code dans mon appli et pas d'erreur, c plutot cool !
Par contre rien ne se passe sur mon Jtree :o(
peux-tu m'aider ?
ou dois je mettre mon fichier xml à parser ? à la racine ?
comment puis savoir ou il plante, car il fait qqchose mais n'affiche rien !
J'espère que tu pourras m'aider.
@+
cs_prey Messages postés 7 Date d'inscription lundi 12 mai 2003 Statut Membre Dernière intervention 21 mai 2003
20 mai 2003 à 16:34
C'est bon, j'ai trouvé. MERCI :o)
cs_prey Messages postés 7 Date d'inscription lundi 12 mai 2003 Statut Membre Dernière intervention 21 mai 2003
20 mai 2003 à 16:25
j'ai ajouté le .jar à mon projet mais rien n'y fait ton code part en erreur en disant par exemple que org.w3c.dom.Element pas connu.
As-tu une idée ?
dois faire qqchose de plus pour intégrer cette class à mon projet ?
@+
cs_Duss Messages postés 890 Date d'inscription lundi 8 avril 2002 Statut Membre Dernière intervention 29 juillet 2004 11
20 mai 2003 à 15:23
alors,
tu pend le xerces-j-bin le plus recent en .zip ou tar.gz selon si tu as win ou linux
Duss
cs_prey Messages postés 7 Date d'inscription lundi 12 mai 2003 Statut Membre Dernière intervention 21 mai 2003
20 mai 2003 à 15:08
excuse moi pour ma naiveté, mais quel fichier je dois télécharger, car sur le lien que tu donnes, y'en a plusieurs et je ne sais lequel prendre.
Encore merci.
cs_Duss Messages postés 890 Date d'inscription lundi 8 avril 2002 Statut Membre Dernière intervention 29 juillet 2004 11
20 mai 2003 à 13:08
salut,
quand tu as telecharger xerces, il faut inclure le jar dans ton projet (ou le classpath) pour pouvoir l utiliser c est tout
Duss
cs_prey Messages postés 7 Date d'inscription lundi 12 mai 2003 Statut Membre Dernière intervention 21 mai 2003
20 mai 2003 à 11:58
Salut,
je vais essayer d'utiliser ton code pour une petite appli que je dois faire en cours.
Mais comme je ne m'y connais pas très bien en Java, peux tu me dire que fichier Xerces je dois installer exactement ?
merci de ton aide.
cs_Duss Messages postés 890 Date d'inscription lundi 8 avril 2002 Statut Membre Dernière intervention 29 juillet 2004 11
19 mars 2003 à 11:48
voila le chemin complet :
http://xml.apache.org/dist/xerces-j/
Duss
karim1758 Messages postés 7 Date d'inscription mercredi 19 mars 2003 Statut Membre Dernière intervention 4 août 2003
19 mars 2003 à 11:00
J'aimerai savoir ou trouver le "Xerces" parceque lorsque je vais sur le site: http://xml.apache.org il ya seulement du texte. Merci d'avance.
Rejoignez-nous