Parsing an HTML document

I want to parse an html document and replace anchor tags with mines on the fly. Can anybody suggest how to do it Please?
Ajay

If your HTML files are not well-formed (chances are with most HTML files) like attribute values are not enclosed in punctuation marks, etc, most XML parsers will fail.
Anand from this forum introduced the JTidy to me and it worked very well. This is a HTML parser that is able to tidy up your HTML codes.

Similar Messages

  • Problem parsing a html document

    Hi all,
    I need to parse a html document.
    InputStream is = new java.io.FileInputStream(new File("c:/temp/htmldoc.html"));
    DOMFragmentParser DOMparser = new DOMFragmentParser();
    DocumentFragment doc = new HTMLDocumentImpl().createDocumentFragment();
    DOMparser.parse(new InputSource(is), doc);
    NodeList nl = doc.getChildNodes();
    I get just 3 of the following nodes...... though the document htmldoc.html is a proper html doc..
    #document-fragment
    HTML
    #text
    Any suggestions/help are most welcome. Thanks

    Here's an example showing how to do this via javax.xml:
    import java.io.*;
    import java.net.*;
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    public class HTMLElementLister {
         public static void main(String[] args) throws Exception {
              URLConnection con = new URL("http://www.mywebsite.com/index.html").openConnection();
              con.connect();
              InputStream in = (InputStream)con.getContent();
              Document doc = null;
              try {
                   DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                   DocumentBuilder db = dbf.newDocumentBuilder();
                   doc = db.parse(in);
              } finally {
                   in.close();
              NodeList nodes = doc.getChildNodes();
              for (int i=0; i<nodes.getLength(); i++) {
                   Node node = nodes.item(i);
                   String nodeName = node.getNodeName();
                   System.out.println(nodeName);
                   if ("html".equalsIgnoreCase(nodeName)) {
                        System.out.println("|");
                        NodeList grandkids = node.getChildNodes();
                        for (int j=0; j<grandkids.getLength(); j++) {
                             Node contentNode = grandkids.item(j);
                             nodeName = contentNode.getNodeName();
                             System.out.println("|- " + nodeName);
                             if ("body".equalsIgnoreCase(nodeName)) {
                                  System.out.println("   |");
                                  NodeList bodyNodes = contentNode.getChildNodes();
                                  for (int k=0; k<bodyNodes.getLength(); k++) {
                                       node = bodyNodes.item(k);
                                       System.out.println("   |- " + node.getNodeName());
    }

  • How to parse a html document?

    I am trying to parse an html document that I load from a url over the internet. The html is not well formed but thats ok. The problem is the document builder throws an exception because the document is not well formed.
    Can I parse a html document using the document builder?
    Please note that I set validating to false and the parse still has a fatal errror saying <meta> tag must have a corresponding </meta> tag.
    I am using code like the following.....
    DocumentBuilderfactory = DocumentBuilderFactory.newInstance();
    factory.setValidating(false);
    DocumentBuilder db = factory.newDocumentBuilder();
    doc = db.parse(urlString);

    The html is not well formed but thats ok.No, it isn't.
    "Validation" means checking that the XML conforms to a schema or a DTD. Don't confuse that with checking whether the XML is well-formed, which means whether it follows the basic rules of XML like opening tags have to have matching closing tags. Which is what your message is telling you -- your file isn't well-formed XML.
    So sure, you can parse HTML or anything else with an XML parser, just be prepared to be told it isn't well-formed XML.
    If you want to clean up HTML so that it's well-formed XML, there are products like HTMLTidy and JTidy that will do that for you.

  • Parsing and HTML document

    Does any one know how to parse an HTML document with having JEditorPane (in-the-neck) do it for you?

    If you want to do a small amount of parsing, then it would make sense to write a custom program as described in the previous response. If, however, you want to do a lot of parsing, then it might make more sense to try to make use of an XML parser. If you are trying to parse html pages that are your own, then you might want to think about transforming them into xhtml so that an XML parser will be able to process them.
    XML parsing is easy. I recently developed a web site for a set of mock exams for the Java Programmer Certification. Originally, I started developing the pages in html, but I quickly realized that I would have a hard time managing the exams in that format. I then organized the exam into a set of xml documents--one document for each topic. To publish a set of cross-topic exams, I use JDOM (with the help of SAX)to load all of the questions into the Java Collections Framework where I can easily organized a set of four cross-topic exams. Also, I use JDOM to number the questions and answers before writting the new exams out to a new set of four xml files. Then I use XSLT to transform the four exam.xml documents into eight HTML files--four html files for the questions and four for the answers.
    If you would like to take a look at the result, then please use the following link.
    http://www.geocities.com/danchisholm2000/
    If you own the html files that you want to parse, then I would try to find a way to transform them into valid xml. XHTML might be a good choice.
    Dan Chisholm

  • Parsing a HTML document

    I want to parse a HTML file and take out the data from it eliminating the HTML tags.Can anybody give some idea how to do that ?
    The HTML file may contain javascript functions also.

    Hi,
    here is a method for replacing strings in a text:
    http://forums.java.sun.com/thread.jsp?forum=31&thread=185221
    I know it isn't exactly what you want, but maybe it helps you to begin.
    regards

  • Parsing HTML documents

    I am trying to write an application that uses a parsed html document to perform some data retrieval. The problem that I am having is that the parser in JDK1.4.1 is unable to completely parse the document correctly. Some fields are skipped as well as other problems. I believe it has to do with the html32.bdtd. Is there a later version?

    Parsing a HTML document is a huge task, you shouldn't do it yourself but instead javax.text.html and javax.text.html.parser already provide almost everything you ever need

  • Parse HTML document embedded in IFRAME

    Dear fellows:
    How can I access contents of an HTML document embedded in an IFRAME tag, by using java class HTMLEditorKit.Parser?
    It is well known that the contents of such embedded HTML document can be accessed by javascript at front end. However, I am more interested on processing it at backend, using HTMLEditorKit.Parser, or any java swing API.
    Thanks for help.

    The javax.swing.text.html framework barely supports HTML 3.2.

  • Counting lines of parsed HTML documents

    Hello,
    I am using a HTMLEditorKit.ParserCallback to handle data generated by a ParserDelegator.
    Everything is ok but I can not find how to catch end of lines (I need to know at what line a tag or an attribute is found).
    Thanks in advance for any hints.

    I noticed that the parse() method of ParserDelegator creates a DocumentParser object to do the actual parsing of the HTML document. DocumentParser contains a method getCurrentLine(). So, I tried to extending ParserDelegator so I could access Document Parser. However, the getCurrentLine method is protected so I ended up also extending DocumentParser.
    You probably have code something like:
    new MyParserDelegator().parse(reader, this, false);
    This should be replaced with:
    parser = new MyParserDelegator();
    parser.parse(reader, this, false);
    where you defined an instance variable: MyParserDelegator parser;
    You can now use parser.getCurrentLine() in any of you parser callback methods.
    Note that you may not alway get the results that you expect for the current line as many times I found the line to be 1 greater than I thought it should be. Anyway you can decide if the code is of any value.
    Following is the code for MyParserDelegator and MyDocumentmentParser inner class. Good Luck.
    import java.io.IOException;
    import java.io.Reader;
    import java.io.Serializable;
    import javax.swing.text.html.HTMLEditorKit;
    import javax.swing.text.html.parser.DTD;
    import javax.swing.text.html.parser.DocumentParser;
    import javax.swing.text.html.parser.ParserDelegator;
    public class MyParserDelegator extends ParserDelegator implements Serializable
         MyDocumentParser parser;
    public void parse(Reader r, HTMLEditorKit.ParserCallback cb, boolean ignoreCharSet) throws IOException
         String name = "html32";
         DTD dtd = createDTD( DTD.getDTD( name ), name );
              parser = new MyDocumentParser(dtd);
              parser.parse(r, cb, ignoreCharSet);
         public int getCurrentLine()
              return parser.getCurrentLine();
    public class MyDocumentParser extends DocumentParser
         public MyDocumentParser(DTD dtd)
              super(dtd);
         public int getCurrentLine()
              return super.getCurrentLine();

  • Parse local HTML files

    Hi,
    I want to parse local HTML files.
    Is there another way than using the Internet Explorer($ie = new-object -com "InternetExplorer.Application";) (without relaying on external packages)?
    At the moment I do something like that:
    $ie = new-object -com "InternetExplorer.Application";
    Start-Sleep -Seconds 1
    $ie.Navigate($srcFile)
    Start-Sleep -Seconds 1
    $ParsedHtml = $ie.Document
    foreach($child in $ParsedHtml.body.getElementsByTagName('table'))
    I still want to have the methods like 'getElementById()' or 'getElementByTagName()'.
    With my current approache, the performance is not realy good and it seems that the iexplorer.exe process is not terminating at the end of the script. 
    Also it seems to have sideeffects with running internet explorer instances (from GUI) - not working to start IE in powershell sometimes.
    Last time I also have a hanging script, not continuing till i manually terminate the iexplorer.exe process.
    The error was:
    Exception calling "Navigate" with "1" argument(s): "The remote procedure call f
    ailed. (Exception from HRESULT: 0x800706BE)"
    At D:\Scripts\Run.ps1:529 char:14
    + $ie.Navigate <<<< ($src)
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ComMethodTargetInvocation
    so I would prefere a method parsing HTML without IE.

    Hi John Mano,
    Please also try to Parse local HTML files with
    System.Xml.Linq, the script may be helpful for you:
    Using PowerShell to parse local HTML files  
    I hope this helps.                               
    XML?
    I thought HTML is not compatible with xml. 
    And as I don't know LINQ good ... 
    Ok, I'll give it a try. later.
    I can't answer the question about other ways to parse HTML, but to close your IE session you should do the following:
    $ie.Quit() # this terminates the IE process
    $ie = $null # this frees the COM object memory
    Thanks for that.
    I now use that, but seems to be still some IEs open ...
    Maybe a path missing where i dont do it.
    But finally I still get this error. And it is blocking the whole script ...
    Exception calling "Navigate" with "1" argument(s): "The remote procedure call f
    ailed. (Exception from HRESULT: 0x800706BE)"
    At E:\DailyBuild\Scripts\PublishTestResults.ps1:533 char:15
    + $ie.Navigate <<<< ($srcFile)
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ComMethodTargetInvocation

  • Parsing String XML Document

    I didn't find a method that parses a XML document when it's not a file. I have a String that I want to parse and the method DocumentBuilder.parse only accepts a String that is a uri to a file.
    I write this code:
    String strXML = "<?xml version='1.0' ?><root><node>anything</node></root>";
    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
    domDoc = docBuilder.parse(strXML);
    Please gimme a light!!
    []'s
    Saulo

    I have a similar problem, I'm trying to do the same BUT in a servlet, it compiles and it actually works if I use it outside my servlet, but, when I mount the servlet with the code similar to this one here it doesn't read the string (at least that's what appears to be, because it doesn't writes to my DB as it should and it doesn't display anything as I'm specifying as my servlet response). Any help? I'm posting my code here:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.BufferedReader;
    import java.io.FileWriter;
    import java.io.PrintWriter;
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.w3c.dom.*;
    import org.apache.xml.serialize.*;
    import java.net.URLDecoder;
    import java.sql.*;
    import org.xml.sax.InputSource;
    import java.io.StringReader;
    public class SMSConnector extends HttpServlet
    //Public variables we will need
    public String Stringid;
    public String Stringpath;
    public String st;
    public int nid;
    //Servlet service method, which permits listening of events
    public void service(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    //Initialization for the servlet
    ServletOutputStream salida = res.getOutputStream();
    ServletInputStream entrada = req.getInputStream();
    //Reading of the entering string
    BufferedReader lector = new BufferedReader(new InputStreamReader (entrada));
    res.setContentType("text/HTML");
    try {
    //Database handler
    Class.forName("org.gjt.mm.mysql.Driver");
    //DocumentBuilderFactory factory =
    //DocumentBuilderFactory.newInstance();
    //DocumentBuilder builder = factory.newDocumentBuilder();
    InputSource inStream = new InputSource();
    inStream.setCharacterStream(new StringReader(lector.readLine()));
    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
    Document doc1 = docBuilder.parse(inStream);
    NodeList listasms = doc1.getElementsByTagName("sms");
    for(int s=0; s<listasms.getLength() ; s++)
    Connection Conn = DriverManager.getConnection ("jdbc:mysql://localhost:3306/smsdb","root", "");
    Node nodosms = listasms.item(s);
    if(nodosms.getNodeType() == Node.ELEMENT_NODE){
    Element elementosms = (Element)nodosms;
    NodeList listatelf = elementosms.getElementsByTagName("tlf");
    Element elementotelf = (Element)listatelf.item(0);
    NodeList textTelfList = elementotelf.getChildNodes();
    String telefono = ((Node)textTelfList.item(0)).getNodeValue();
    //String SendingAddress = ((Node)textAddressList.item(0)).getNodeValue().trim();
    salida.println(telefono);
    NodeList listaop = elementosms.getElementsByTagName("op");
    Element elementoop = (Element)listaop.item(0);
    NodeList textOpList = elementoop.getChildNodes();
    String operadora = ((Node)textOpList.item(0)).getNodeValue();
    NodeList listasc = elementosms.getElementsByTagName("sc");
    Element elementosc = (Element)listasc.item(0);
    NodeList textSCList = elementosc.getChildNodes();
    String shortcode = ((Node)textSCList.item(0)).getNodeValue();
    NodeList listabody = elementosms.getElementsByTagName("body");
    Element elementobody = (Element)listabody.item(0);
    NodeList textBodyList = elementobody.getChildNodes();
    String body = ((Node)textBodyList.item(0)).getNodeValue();
    Statement sta = Conn.createStatement();
    sta.executeUpdate("INSERT INTO smstable (telf,op,sc,body) VALUES ('" + telefono + "','" + operadora + "','" + shortcode + "','" + body + "')");
    Conn.commit();
    Conn.close(); }
    //Catching errors for the SAX and XML parsing
    catch (SAXParseException err)
    System.out.println ("** Parsing error" + ", line " + err.getLineNumber () + ", uri " + err.getSystemId ());
    System.out.println(" " + err.getMessage ());
    catch (SAXException e)
    Exception x = e.getException ();
    ((x == null) ? e : x).printStackTrace ();
    catch (Throwable t)
    t.printStackTrace ();
    }

  • Error in parsing the input document

    Dear All
    When I am trying to fetch data from SAP thro OracleAS with BPEL , I am getting this error. I dont know whee i did worng, Pl. clarify me if any body know this....
    <summary>
    http://127.0.0.1:8888/orainfra/wsil/adapters/applications/GetDetail_invoke.wsdl?wsdl [ GetDetailPortType::GetDetail(input_GetDetail,output_GetDetail) ] - WSIF JCA Execute of operation 'GetDetail' failed due to: Error in parsing the input document.; nested exception is:
         javax.resource.ResourceException: Error in parsing the input document.
    </summary>

    Sir,
    From the JCA Log I got the below message
    Tue, 1 Jul 2008 18:30:43.0220 IST - Thread[HTTPThreadGroup-56,5,HTTPThreadGroup] [error] [IWAF JCA SAP] Error in processing the input document.
    getMessage(): java.lang.Exception: Function module inputVariable does NOT exist.
    int getError(): Server
    getAdapterCode(): null
    getVendorThrowable(): null
    Also i am not giving my input in xml format. when i am running the bpel console its asking for input in html format , there im giving my input, after urs question only im doubting on my input. how can i give my input in which format, how to defin that format. pl. give me yours views and also i will try myself.

  • Advanced HTML Document use

    Ok, I'm using an HTML Document in my Java Applet Jabber client. Currently I'm using an HTML Document for the chat area. What I'm lacking is the ability to turn html on/off or put in text that contains actual HTML without parsing it out.
    I've tried replacing the < and > 's with > and < but to no avail. This simply removes the hats or whatever they're called and everything between them completely from the content of the document. I've tried using the whitespace attribute of css which also did not work. I've tried 'pre' tags, and I've tried closing the html tag and re-opening it. I tried changing the content type of the document. None of these have worked, they simply remove the html or the entire text altogether. I'm guessing I either have to modify the parser or play with the actual objects of the html.
    Here's how I'm inserting the html(this is the only way I could get it to work).
    int start = doc.getLength();
    chatPane.setCaretPosition(start);
    inserter = new HTMLEditorKit.InsertHTMLTextAction(null,"<font color='"+nameHTMLColor+"'>"+from+"</font><font color='"+messageHTMLColor+"'>"+Static.decodeChat(message, htmlEnabled)+"</font>",HTML.Tag.BODY,null);
    inserter.actionPerformed(new ActionEvent(chatPane,ActionEvent.ACTION_PERFORMED,null));
    int end = doc.getLength();
    chatPane.setCaretPosition(end);
    Thanks for your time.
    --Zephryl                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    hehe... I did, "I've tried replacing the < and > 's with > and < but to no avail." Sorry, the forum decoded the escapes.

  • JEditorPane - backmapping highlighted text to source html document

    Hello everyone,
    I have the following problem: I display a HTML document in JEditorPane. Then I highlight some chunk of text and get the start and the end selection offsets by using getSelectionStart() and getSelectionEnd() methods, respectively. What I would like to know is the exact position (character offset) of the highlighted text in the original HTML document that is being displayed.
    Does anybody know the solution for that?
    Thanks.

    I don't think it's possible. The parser builds a Document out of the text and doesn't keep the original source text. For example if your html is like this:
    String text = "<html><body>     some     text     </body></html>";All the multiple spaces between the text is parsed out.
    Use a JTextPane and use attributes. Its easier to work with than using HTML.

  • Error: Error: XML Indexer: Fatal Parse error in document

    Hi,
    I was trying to add a document into using the following code:
    txn = myManager.createTransaction();               
    XmlDocumentConfig docConfig = new XmlDocumentConfig();
    docConfig.setGenerateName(true);
    myContainer.putDocument(txn, docName, content, docConfig);
    //commit the Transaction
    txn.commit();
    the content is juz a string formatted to the UTF-8 format. When I run the program, an error occurs:
    com.sleepycat.dbxml.XmlException: Error: Error: XML Indexer: Fatal Parse error in document at line 2, char 74. Parser message: An exception occurred! Type:NetAccessorException, Message:The host/address 'www.posc.org' could not be resolved (Document: docName_287), errcode = INDEXER_PARSER_ERROR
         at com.sleepycat.dbxml.dbxml_javaJNI.XmlContainer_putDocument__SWIG_3(Native Method)
         at com.sleepycat.dbxml.XmlContainer.putDocument(XmlContainer.java:736)
         at com.sleepycat.dbxml.XmlContainer.putDocument(XmlContainer.java:232)
         at com.sleepycat.dbxml.XmlContainer.putDocument(XmlContainer.java:218)
         at ag.SaveMessageinDB.addXMLDocument(SaveMessageinDB.java:157)
         at ag.SaveMessageinDB.saveMessage(SaveMessageinDB.java:58)
         at connector.TextListener.onMessage(TextListener.java:92)
         at com.tibco.tibjms.TibjmsSession._submit(TibjmsSession.java:2775)Reading message: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE BLMNOS SYSTEM "http://www.posc.org/ebiz/blmSamples/blmnos.dtd"> at com.tibco.tibjms.TibjmsSession._dispatchAsyncMessage(TibjmsSession.java:1413)
    at com.tibco.tibjms.TibjmsSession$Dispatcher.run(TibjmsSession.java:2491)
    The XML Message that causes this problem is this:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE BLM31603 SYSTEM "http://www.posc.org/ebiz/blmSamples/blm3160-3.dtd">
    <BLM31603>
    <DocumentInformation>
    <documentName namingSystem="POSC pilot">Sample 2</documentName>
    <Version>
    <dtdVersion>1.0 beta</dtdVersion>
    <formVersion>BLM 3160-3 August 1999</formVersion>
    </Version>
    <reportClass>Application for Permit to Drill</reportClass>
    <filingDate>
    <year>1997</year><month>07</month><day>14</day>
    </filingDate>
    <Security>
    <securityClass>confidential</securityClass></Security>
    <BusinessAssociate>
    <Contact>
    <name>Joseph Josephson</name>
    <Address>
    <street>5847 Rushmore Dr.</street>
    <cityName>Rapid City</cityName>
    <stateName namingSystem="USCode">SD</stateName>
    <postalCode namingSystem="USZipCode">57709</postalCode>
    </Address>
    <phoneNumber>266-181-9229</phoneNumber>
    <associatedWith>Black Hills Exploration</associatedWith>
    </Contact>
    <AuthorizedPerson>
    <name>Joseph Josephson</name>
    <title>Vice President of Drilling Operations</title>
    </AuthorizedPerson>
    </BusinessAssociate>
    </DocumentInformation>
    <FieldInformation>
    <regulatoryFieldName>wildcat</regulatoryFieldName>
    <SpacingOrder>
    <spacingUnitSize unit="acre">40</spacingUnitSize>
    </SpacingOrder>
    <ContractDesignation>
    <leaseName>Dog Draw</leaseName>
    <leaseNumber>156-5799-80-89</leaseNumber>
    <unitAgreementName>WY72817</unitAgreementName>
    <leaseSize unit="acre">629.97</leaseSize>
    <indianName type="allottee">James Hickson</indianName>
    </ContractDesignation>
    </FieldInformation>
    <WellInformation>
    <apiWellNumber>510162561100</apiWellNumber>
    <wellID>Dog Draw #1</wellID>
    <wellProduct type="oil"/>
    <wellActivity type="drill"/>
    <wellCompletionType type="single"/>
    <Operator>
    <operatorName>Black Hills Exploration</operatorName>
    <Address>
    <street>5847 Rushmore Dr.</street>
    <cityName>Rapid City</cityName>
    <stateName namingSystem="USCode">SD</stateName>
    <postalCode namingSystem="USZipCode">57709</postalCode>
    </Address>
    <phoneNumber>266-181-9229</phoneNumber>
    <bondCollateralNumber>BF39002976</bondCollateralNumber>
    </Operator>
    <WellLocation>
    <LegalDescription>
    <townshipNumber direction="N">52</townshipNumber>
    <rangeNumber direction="W">68</rangeNumber>
    <sectionNumber>18</sectionNumber>
    <quarterSectionIdentifier>SE 1/4, SW 1/4</quarterSectionIdentifier>
    <locationDistance from="FSL" unit="ft">843</locationDistance>
    <locationDistance from="FWL" unit="ft">1664</locationDistance>
    </LegalDescription>
    <Geopolitical>
    <stateName>WY</stateName>
    <countyName>Crook</countyName>
    </Geopolitical>
    <RelativeFrom from="Town">
    Approximately 15 mi NW of Moorcroft, WY </RelativeFrom>
    </WellLocation>
    <wellElevationHeight referenceCode="GL">4306</wellElevationHeight>
    <WellboreInformation>
    <proposedTotalMeasuredDepth unit="ft">8500</proposedTotalMeasuredDepth>
    <proposedTotalTrueVerticalDepth unit="ft">8450</proposedTotalTrueVerticalDepth>
    <BottomholeLocation>
    <LegalDescription>
    <townshipNumber direction="N">52</townshipNumber>
    <rangeNumber direction="W">68</rangeNumber>
    <sectionNumber>18</sectionNumber>
    <quarterSectionIdentifier>SE 1/4, SW 1/4</quarterSectionIdentifier>
    <locationDistance from="FSL" unit="ft">843</locationDistance>
    <locationDistance from="FWL" unit="ft">1664</locationDistance>
    </LegalDescription>
    <Geopolitical>
    <stateName>WY</stateName>
    <countyName>Crook</countyName>
    </Geopolitical>
    <RelativeFrom from="LeaseLine">
    843 ft from nearest property or lease line</RelativeFrom>
    </BottomholeLocation>
    <operationStartDate>
    <year>1997</year><month>8</month><day>8</day></operationStartDate>
    <estimatedDuration unit="days">37</estimatedDuration>
    <drillingTool type="rotary"/>
    </WellboreInformation>
    </WellInformation>
    <ProposedCasingProgram>
    <CasingInformation type="conductor">
    <drillBitDiameter>12 5/8</drillBitDiameter>
    <tubularOutsideDiameter>9.5</tubularOutsideDiameter>
    <tubularWeight unit="lb/ft">52</tubularWeight>
    <tubularGradeCode>C-22</tubularGradeCode>
    <baseMeasuredDepth unit="ft">3477</baseMeasuredDepth>
    <Cement>
    <cementQuantity unit="sacks" type="Eugene">97</cementQuantity>
    <cementSlurryVolume unit="ft3">1287</cementSlurryVolume>
    <cementSlurryYield unit="ft3/sack">13.1</cementSlurryYield>
    <additive>Rock Salt</additive>
    <additive>carcinogenic biophages</additive>
    <topMeasuredDepth unit="ft">87</topMeasuredDepth>
    </Cement>
    </CasingInformation>
    <CasingInformation type="intermediate">
    <drillBitDiameter>8 7/8</drillBitDiameter>
    <tubularOutsideDiameter>8.125</tubularOutsideDiameter>
    <tubularWeight unit="lb/ft">43</tubularWeight>
    <tubularGradeCode>D-220</tubularGradeCode>
    <baseMeasuredDepth unit="ft">9112</baseMeasuredDepth>
    <Cement>
    <cementQuantity unit="sacks" type="Portland">82</cementQuantity>
    <cementSlurryVolume unit="ft3">1003</cementSlurryVolume>
    <cementSlurryYield unit="ft3/sack">13.1</cementSlurryYield>
    <stageCementerMeasuredDepth unit="ft">6633</stageCementerMeasuredDepth>
    </Cement>
    <Cement>
    <cementQuantity unit="sacks" type="Seattle">116</cementQuantity>
    <cementSlurryVolume unit="ft3">1504</cementSlurryVolume>
    <cementSlurryYield unit="ft3/sack">13.1</cementSlurryYield>
    <additive>mucilaginous algal-based slime</additive>
    <stageCementerMeasuredDepth unit="ft">3483</stageCementerMeasuredDepth>
    </Cement>
    </CasingInformation>
    </ProposedCasingProgram>
    <reportRemark>Black Hills Exploration has a Statewide Bond. Bond # BF39002976</reportRemark>
    <reportRemark>Drilling Program and Surface Use Plan attached.</reportRemark>
    </BLM31603>
    Many Thanks in advance for your help!
    :)

    hi, I also have same problem. I wanna to putDocument dblp.xml in the created container by using dbxml shell commands
    I faced this error:
    "stdin:18: putDocument failed, Error: Error: XML indexer: Fatal parse error in document at line 1, char 1. Parser message: invalid document structure <Document: dbp.xml>"
    the content of theat xml file is:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE dblp SYSTEM "file: dblp.dtd">
    <dblp>
    <mastersthesis mdate="2006-04-06" key="ms/Vollmer2006">
    <author>Stephan Vollmer</author>
    <title>Portierung des DBLP-Systems auf ein relationales Datenbanksystem und Evaluation der Performance.</title>
    <year>2006</year>
    <school>Diplomarbeit, Universit&auml;t Trier, FB IV, Informatik</school>
    <url>http://dbis.uni-trier.de/Diplomanden/Vollmer/vollmer.shtml</url>
    </mastersthesis>
    <mastersthesis mdate="2002-01-03" key="ms/Brown92">
    <author>Kurt P. Brown</author>
    <title>PRPL: A Database Workload Specification Language, v1.3.</title>
    <year>1992</year>
    <school>Univ. of Wisconsin-Madison</school>
    </mastersthesis>
    </article>
    <article mdate="2003-11-19" key="journals/ai/Todd93">
    <author>Peter M. Todd</author>
    <title>Stephanie Forrest, ed., Emergent Computation: Self-Organizing, Collective, and Cooperative Phenomena in Natural and Artificial Computing Networks.</title>
    <pages>171-183</pages>
    <year>1993</year>
    <volume>60</volume>
    <journal>Artif. Intell.</journal>
    <number>1</number>
    <url>db/journals/ai/ai60.html#Todd93</url>
    </article>
    <article mdate="2003-11-19" key="journals/ai/KautzKS95">
    <author>Henry A. Kautz</author>
    <author>Michael J. Kearns</author>
    <author>Bart Selman</author>
    <title>Horn Approximations of Empirical Data.</title>
    <pages>129-145</pages>
    <year>1995</year>
    <volume>74</volume>
    <journal>Artif. Intell.</journal>
    <number>1</number>
    <url>db/journals/ai/ai60.html#Todd93</url>
    </article>
    </dblp>
    could you please help me.
    here or send me to this address please:
    [email protected]
    Thanks,
    Mohsen

  • Preview of HTML document in KM Navigation iView

    Hi all!
    I need your help. I would like to create layout set which would be able to display tree on the left side and preview of HTML document on the right side of content area. If I click on HTML document in the tree I need to see his preview. I thought that I can resolve this by "Explorer and Preview" profile. But unfortunely it doesn't work. Has someone any experience with the profile? Or can someone advice to me how create new layout set?
    I found this links, but they didn't help me much.
    http://help.sap.com/saphelp_nw04/helpdata/en/4e/02573d675e910fe10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/96/248cd68f23774fb74dfc18a2994d8f/frameset.htm
    Thank you in advance for any reply!
    Regards
    Zbynek

    Hi Saurabh,
    Using the presentation settings in Details can sometimes
    be tricky since it remembers the context of which iView
    called it. Make sure you open the details out of the iView
    in which you want the customizations to be in effect.
    Otherwise, changing it in the configuration is a
    bit more straightforward in its effects.
    Regards,
    Darin

Maybe you are looking for