SOS: Am I right when Parsing an IP address this way?

Hello dear, My question is: I intend to parse a string into an ip address. Following is the code snippet implementing my intention. But It returns false all the time I am nearly crazy! Help me out,please!
     //parse the ip address
     //the ipString stores the string presentation of the ip address.
     String[] ipParsed=ipString.split(".");
     if(ipParsed.length!=4)
          return false;
     //intSection stores each of the four parts of
     //the ip address,in the integer form.
     int intSection;
     for(int i=0;i<ipParsed.length;i++){
            intSection=Integer.parseInt(ipString);
     //limit each integer between 0 and 255
     if(intSection<0||intSection>255)
     return false;
Maybe the split() method is not the best way doing this.But I thought it is not its default.
Thank you!

You don't need to roll this one yourself. The InetAddress class can parse address for you. If you give it a numeric address such as "123.45.67.8" it doesn't try to look it up. If you provide a domain based address such as "www.google.com" it will look it up.
eg.
import java.net.InetAddress;
public class TestInet
        public static void main(String[] args)
                try
                        InetAddress ia = InetAddress.getByName("123.45.67.8");
                        byte[] ba = ia.getAddress();
                        for(int i=0; i< ba.length; i++)System.out.println(ba);
catch(Exception e){e.printStackTrace();}

Similar Messages

  • Just recently bought an Apple Magic Mouse and noticed that it wiggles from left to right when I hold it a certain way. It does so ever so slightly so I'm afraid that it might be a defective product. I'm really careful and haven't dropped it at all.

    Can anybody else replicate this issue? The top polycarbonate plate with the apple logo on top (not the aluminum part) wiggles from left to right ever so slightly when looking at it I noticed it does this. Not typical of any apple products I've ever owned.

    Not quite with you, I'm afraid.   Is it the mouse itself which wiggles or is it the cursor on the screen. 
    I really don't mean offence but the mouse ain't going to wiggle unless you have magical powers   ... but the cursor may, if, for example, the batteries are not solidly seated or connected.   Some are very sensitive and take getting used to.
    If it is the cursor, you could try removing and cleaning all contact points and when you replace the batteries make sure they are tightly seated.  Oh, and I forgot to mention; is the green light steady or does it flicker?
    Message was edited by: seventy one

  • Ad opens in full screen right when i start computer, noticed this after upgrade

    when i start my computer for the first time as soon as the wi-fi connects firefox opens, usually with a full screen and its always turbo tax, then i cleared my cookies, and now i get a posture pedic page, every single time i restart or shut down and turn on my computer

    Hit '''F11'''.

  • I can not get the phone to turn back on. My email had been blinking off so I tried turning it off. After holding down top button and bottom button it the apple sign came up then went out as it has before when I have approached it this way. But now no go.

    My phone is dead it will not turn back on after taking a step I have used in the past when I have had issues with the phone. In the past I haeld the top button and the button on the face down and it will turn black then the apple sign comes up then off. I can then turn it back on and it seems to be reset and all is good not so today. It will not turn back on.

    1. Plug phone into AC adaptor and charge for at least 30 minutes
    2. If not on, reset phone: press both home and power buttons for at least 10 seconds, releasing when the Apple logo appears.
    If no reponse to above, there is hardware damage and you need to take it to Apple or whoever provides iPhone service in your country.

  • Getting this error from established user, when emailing from external address - This is a permanent error. The following address(es) failed:

    Hi
    It has been reported than an external person is unable to email one of our staff and is getting this bounceback. 
    The problem is, this member of staff has been here for year, emails works fine for everyone else etc, any ideas of the cause of the problem? We are using exchange 2010 fwiw
    Subject: Mail delivery failed: returning message to sender
    This message was created automatically by mail delivery software.
    A message that you sent could not be delivered to one or more of its recipients.
    This is a permanent error. The following address(es) failed: [email protected] 

    Hi,
    I think the sender should check their exchange if there are any problems first.
    Accroding to your description, it seems that this is not your problem.
    Thanks.
    Niko Cheng
    TechNet Community Support

  • Bypass  login screen when parse HTML

    Hello all and hope you can help or point me to the right direction
    I have a simple application that reads all HTML Link from a given URL, open that URL�s and parse the text in these pages using HTML EditorKit.
    Some URL�s invoke a login screen which of course terminates the program.
    Is there any way I can bypass login information? Or automatically pass the right parameters?
    Is there any way that a browser can be invoked when encounter login pages, fill the right credentials and continue with the program?
    Thanks

    Is there any way I can bypass login information? No... kinda defeats the point of having a login page if you could.
    Or automatically pass the right parameters?
    Is there any way that a browser can be invoked when
    encounter login pages, fill the right credentials and
    continue with the program?Yes... if you know what those parameters are, it should be possible. You can submit form information to a URL using Java so provided you can get the form's URL when parsing the logon page then you can post the parameters necessary to get the redirect link.
    Whether it will actually work in a practical sense as the redirect maybe to a secure connection etc I don't know as I've never tried.

  • Hello, i restored and updated my iphone 4 to the latest version of 5.1.1 and after that when i connect my mobile to i tunes all i see is a big rectangle and a apple logo on left and a small lock on right side please help me fix this problem.

    hello,
    i restored and updated my iphone 4 to the latest version of 5.1.1 and after that when i connect my mobile to i tunes all i see is a big rectangle and a apple logo on left and a small lock on right side please help me fix this problem.

    I sloved this issue by resting my phone from settings>general>reset>reset all settings...the problem will be fixed

  • Unable to display tree view; Error when parsing an XML document (Premature end of file.)

    Hi folks,
    I am using a cascaded mapping in my OM. I have a graphical mapping followed by the Java mapping. It is a flat file to IDOC mapping. Everything works fine in Dev but when I transport the same objects to QA, the Operation mapping though it doesn't fail in ESR testing tool, gives the following message and there is no output generated for the same payload which is successfully tested in DEV. Please advise on what could be the possible reasons.
    Unable to display tree view; Error when parsing an XML document (Premature end of file.)

    kalyan,
    There seems to be an invalid xml payload which causes this error in ESR not generating the tree view. Please find the similar error screenshot and rectify the payload.
    Mutti

  • How to get the filename when parsing a file with d3l

    All
    After some time have experience with interconnect, IStudio I need the following info. Is it possible to get the filename when parsing a flat file using a d3l? This is needed because we need to store the filename together with the data into the database.
    Any examples or directions to some documents are welcome.
    Regards
    Olivier De Groef

    has anyone some info on this

  • JavaMapping in PI 7.1 Error:Unable to display tree view; Error when parsing

    hi,
    i get by testing in PI 7.1 (operation mapping) this ERROR:
    "Unable to display tree view; Error when parsing an XML document (Content is not allowed in prolog.)"
    this is my java-programm-code:
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import com.sap.aii.mapping.api.StreamTransformation;
    import java.io.*;
    import java.util.Map;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    /*IMPORT statement imports the specified classes and its methods into the program */
    /Every Java mapping program must implement the interface StreamTransformation and its methods execute() and setParameter() and extend the class DefaultHandler./
    public class Mapping extends DefaultHandler implements StreamTransformation {
    Below is the declaration for all the variables we are going to use in the
    subsequent methods.
         private Map map;
         private OutputStream out;
         private boolean input1 = false;
         private boolean input2 = false;
         private int number1;
         private int number2;
         private int addvalue;
         private int mulvalue;
         private int subvalue;
         String lineEnd = System.getProperty("line.separator");
    setParamater() method is used to store the mapping object in the variable
    "map"
         public void setParameter(Map param) {
              map = param;
         public void execute(InputStream in, OutputStream out)
                   throws com.sap.aii.mapping.api.StreamTransformationException {
              DefaultHandler handler = this;
              SAXParserFactory factory = SAXParserFactory.newInstance();
              try {
                   SAXParser saxParser = factory.newSAXParser();
                   this.out = out;
                   saxParser.parse(in, handler);
              } catch (Throwable t) {
                   t.printStackTrace();
    As seen above execute() method has two parameters "in" of type
    InputStream and "out" of type OutputStream. First we get a new instance
    of SAXParserFactory and from this one we create a new Instance of
    SAXParser. To the Parse Method of SaxParser, we pass two parameters,
    inputstream "in" and the class variable "handler".
    Method "write" is a user defined method, which is used to write the
    string "s" to the outpurstream "out".
         private void write(String s) throws SAXException {
              try {
                   out.write(s.getBytes());
                   out.flush();
              } catch (IOException e) {
                   throw new SAXException("I/O error", e);
         public void startDocument() throws SAXException {
              write("");
              write(lineEnd);
              write("");
              write(lineEnd);
         public void endDocument() throws SAXException {
              write("");
              try {
                   out.flush();
              } catch (IOException e) {
                   throw new SAXException("I/O error", e);
         public void startElement(String namespaceURI, String sName, String qName,
                   Attributes attrs) throws SAXException {
              String eName = sName;
              if ("".equals(eName))
                   eName = qName;
              if (eName.equals("NUMBER1"))
                   input1 = true;
              if (eName.equals("NUMBER2"))
                   input2 = true;
         public void endElement(String namespaceURI, String sName, String qName)
                   throws SAXException {
              String eName = sName;
              if ("".equals(eName))
                   eName = qName;
              if (eName.equals("NUMBER1"))
                   input1 = false;
              if (eName.equals("NUMBER2"))
                   input2 = false;
         public void characters(char[] chars, int startIndex, int endIndex)
                   throws SAXException {
              String dataString = new String(chars, startIndex, endIndex).trim();
              if (input1) {
                   try {
                        number1 = Integer.parseInt(dataString);
                   } catch (NumberFormatException nfe) {
              if (input2) {
                   number2 = Integer.parseInt(dataString);
              if (input2 == true) {
                   addvalue = number1 + number2;
                   mulvalue = number1 * number2;
                   subvalue = number1 - number2;
                   write("" + addvalue + "");
                   write(lineEnd);
                   write("" + mulvalue + "");
                   write(lineEnd);
                   write("" + subvalue + "");
                   write(lineEnd);
    in developer studio 7.1 i dont get error.
    this happens by testing the mapping-programm in ESR.
    can somebody help me please?

    Make sure that the xml created out after the java mapping is a valid xml with only one root node.
    Regards,
    Prateek

  • Exception in java mail API when parsing email

    I am receiving the following exception when receiving some emails that contain attachments with java mail (irrelevant part of stack trace omitted):
    javax.mail.internet.ParseException: Expected ';', got ","
         at javax.mail.internet.ParameterList.<init>(ParameterList.java:289)
         at javax.mail.internet.ContentDisposition.<init>(ContentDisposition.java:100)
         at javax.mail.internet.MimeBodyPart.getFileName(MimeBodyPart.java:1136)
    The header of a message the causes the problem is:
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) ------------ Message headers ------------
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) Received: from mail2.uscourts.gov ([10.170.250.2])
    by ushub06.uscmail.dcn (Lotus Domino Release 8.5.2FP1 HF3)
    with SMTP id 2011042514392620-733724 ;
    Mon, 25 Apr 2011 14:39:26 -0400
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) Received: from (unknown [63.174.91.123]) by avms-usc-04c-02vh.ibmta.uscourts.gov with smtp
         id 191c_067d_57fad3b8_6f6b_11e0_8de9_00265519f638;
         Mon, 25 Apr 2011 18:39:24 +0000
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) X-WSS-ID: 0LK815L-05-67D-02
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) X-M-MSG:
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) Received: from kcmexclaim.Our-Firm.com (unknown [10.42.5.222])by mail4.stinson.com (Axway MailGate 3.8.1) with ESMTP id 27239A12C1D;     Mon, 25 Apr 2011 13:39:20 -0500 (CDT)
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) Received: from KCME2K7-HUB02.Our-Firm.com ([10.42.5.19]) by kcmexclaim.Our-Firm.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 25 Apr 2011 13:39:23 -0500
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) Received: from FIRMCMS01.Our-Firm.com ([fe80::81d0:dd2b:9983:1126]) by KCME2K7-HUB02.Our-Firm.com ([::1]) with mapi; Mon, 25 Apr 2011 13:39:22 -0500
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) From:
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) To:
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) Cc:
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) Disposition-Notification-To:
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) Date: Mon, 25 Apr 2011 13:39:21 -0500
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) Subject: Order Regarding Application To Employ SMH as Debtor's Counsel
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) Thread-Topic: Order Regarding Application To Employ SMH as Debtor's Counsel
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) Thread-Index: AcwDb/bpRQlxt/eTQC6BA7G10hdWJQAB99vQ
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) Message-ID: <[email protected]>
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) Accept-Language: en-US
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) X-MS-Has-Attach: yes
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) X-MS-TNEF-Correlator:
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) acceptlanguage: en-US
    2011-04-25 14:39:48,060 INFO [STDOUT] (WorkManager(2)-97) Importance: Normal
    2011-04-25 14:39:48,061 INFO [STDOUT] (WorkManager(2)-97) Priority: normal
    2011-04-25 14:39:48,061 INFO [STDOUT] (WorkManager(2)-97) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4841
    2011-04-25 14:39:48,061 INFO [STDOUT] (WorkManager(2)-97) MIME-Version: 1.0
    2011-04-25 14:39:48,061 INFO [STDOUT] (WorkManager(2)-97) Return-Path:
    2011-04-25 14:39:48,061 INFO [STDOUT] (WorkManager(2)-97) X-OriginalArrivalTime: 25 Apr 2011 18:39:23.0526 (UTC) FILETIME=[18E10260:01CC0378]
    2011-04-25 14:39:48,061 INFO [STDOUT] (WorkManager(2)-97) X-MIMETrack: Itemize by SMTP Server on USHUB06/H/US/USCOURTS(Release 8.5.2FP1 HF3|December 21, 2010) at 04/25/2011 02:39:26 PM, Serialize by POP3 Server(Release 8.0.2FP3 HF28|December 28, 2009) at 04/25/2011 02:39:47 PM
    2011-04-25 14:39:48,061 INFO [STDOUT] (WorkManager(2)-97) Content-Transfer-Encoding: 7bit
    2011-04-25 14:39:48,061 INFO [STDOUT] (WorkManager(2)-97) Content-Class: urn:content-classes:message 2011-04-25 14:39:48,061 INFO [STDOUT] (WorkManager(2)-97) Content-Type: multipart/mixed;     boundary="_004_52835C1F7A6C8D4F989C433DCC611CA06F252D6682FIRMCMS01OurF_"
    2011-04-25 14:39:48,061 INFO [STDOUT] (WorkManager(2)-97) Content-Language: en-US
    the client/OS combination of the mail sender is Windows XP service Pack 3/Outlook 2007 , Java Mail version 1.4.3
    Any help would be appreciated
    Edited by: 854778 on Apr 26, 2011 8:28 AM

    The exception is occurring when parsing the Content-Disposition header.
    I don't see that header in the list of headers you provided.
    Can you save the entire message to a text file using
    msg.writeTo(new FileOutputStream("msg.txt"));
    Then look for the Content-Disposition header in msg.txt. Most likely you'll
    find that it is incorrectly formatted - as the exception says, there's a comma
    in a place that a semicolon is expected.

  • Hi I am from Spain and I am new on Macworld, recently I have bought a Mac Book pro, the keyboard is not configured rightly when I have to write @ I have to press g instead of @ key , how can I solve this problem ?. Thanks in advance.

    Hi ,
    I am from Spain and I am new in MacWorld, recently I have bought  a MacBook Pro , but teh keyboard is not configured rightly, when I want to write @ I have to press g instead of the @ key, or the symbol for questions ?, I have to press :: key. Please how can I solve this problem ?. Thanks in advance.
    BR,
    XAvier

    xavier85 wrote:
    I am new in MacWorld
    Sorry to disappoint you, but this isn't MacWorld.
    when I want to write @ I have to press g instead of the @ key
    Are you sure you don't have to press ⌥-G (Option-G) to get @?
    Anyway, sounds like a keyboard/keyboard layout mismatch.
    Go to System Preferences > Language & Text > Input Sources. From "Select input methods to use" enable (check) the following
    Keyboard & Character Viewer
    U.S.
    Spanish
    Spanish - ISO
    Also enable "Show Input menu in menu bar".
    The Input menu should appear to the right of your menu bar, with the icon of a national flag. From this menu, choose "Show Keyboard Viewer". Then compare the layout displayed by Keyboard Viewer with the label on your MBP's keyboard. If it doesn't match, choose a different layout from the Input menu.
    My suspicion is that you're using a US keyboard with a Spanish keyboard layout, hence the difference you noted.

  • Problem finding DTD when parsing

    I'm trying to parse an XML string that I get back from a server. The XML starts off like this:
    <?xml version="1.0" standalone="no"?>
    <!DOCTYPE RETS SYSTEM "RETS-20021015.dtd">and I'm parsing it like this:
    InputSource source = new InputSource(new StringReader(propertiesXML));
    DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    Document propertiesDoc = builder.parse(source);I get this error:
    java.io.FileNotFoundException: C:\Documents and Settings\jessevitrone\IdeaProjects\AgentScape\RETS-20021015.dtd (The system cannot find the file specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
         at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
         at java.net.URL.openStream(URL.java:913)
         at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:947)
         at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:893)
         at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:860)
         at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:288)
         at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:911)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:348)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:539)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
         at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
         at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:253)
         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:206)It looks like it's not finding that DTD. I have that DTD is the root of my classpath. Shouldn't it find it?
    Thanks in advance.

    Presumably you have a URL that returns you the XML
    string. If the proprietors of the server have set
    things up correctly, their server should also return
    you the DTD from the same "directory" as the XML. So
    if you give this URL to the parser, it should be able
    to find the DTD on the server. That's assuming that
    (as I said) the server is set up correctly. If it
    isn't, you should contact them and tell them so.
    (However I have not found in the past that pointing
    out people's mistakes causes them to correct those
    mistakes.)
    If that fails then use the EntityResolver. Sounds like
    you have a local copy of the DTD to point it at.
    Thanks, that makes sense. I'm the one running the server, it's just a test server, and I wouldn't be surprised if it's not set up right. I'll take a look into that. If not, I'll try the EntityResolver. Thanks for your .help

  • Persisting unexplained errors when parsing XML with schema validation

    Hi,
    I am trying to parse an XML file including XML schema validation. When I validate my .xml and .xsd in NetBeans 5.5 beta, I get not error. When I parse my XML in Java, I systematically get the following errors no matter what I try:
    i) Document root element "SQL_STATEMENT_LIST", must match DOCTYPE root "null".
    ii) Document is invalid: no grammar found.
    The code I use is the following:
    try {
    Document document;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setValidating(true);
    factory.setNamespaceAware(true);
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.parse( new File(PathToXml) );
    My XML is:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <!-- Defining the SQL_STATEMENT_LIST element -->
    <xs:element name="SQL_STATEMENT_LIST" type= "SQL_STATEMENT_ITEM"/>
    <xs:complexType name="SQL_STATEMENT_ITEM">
    <xs:sequence>
    <xs:element name="SQL_SCRIPT" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <!-- Defining simple type ApplicationType with 3 possible values -->
    <xs:simpleType name="ApplicationType">
    <xs:restriction base="xs:string">
    <xs:enumeration value="DawningStreams"/>
    <xs:enumeration value="BaseResilience"/>
    <xs:enumeration value="BackBone"/>
    </xs:restriction>
    </xs:simpleType>
    <!-- Defining the SQL_SCRIPT element -->
    <xs:element name="SQL_SCRIPT" type= "SQL_STATEMENT"/>
    <xs:complexType name="SQL_STATEMENT">
    <xs:sequence>
    <xs:element name="NAME" type="xs:string"/>
    <xs:element name="TYPE" type="xs:string"/>
    <xs:element name="APPLICATION" type="ApplicationType"/>
    <xs:element name="SCRIPT" type="xs:string"/>
    <!-- Making sure the following element can occurs any number of times -->
    <xs:element name="FOLLOWS" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    and my XML is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    Document : SQLStatements.xml
    Created on : 1 juillet 2006, 15:08
    Author : J�r�me Verstrynge
    Description:
    Purpose of the document follows.
    -->
    <SQL_STATEMENT_LIST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.dawningstreams.com/XML-Schemas/SQLStatements.xsd">
    <SQL_SCRIPT>
    <NAME>CREATE_PEERS_TABLE</NAME>
    <TYPE>CREATION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    CREATE CACHED TABLE PEERS (
    PEER_ID           VARCHAR(20) NOT NULL,
    PEER_KNOWN_AS      VARCHAR(30) DEFAULT ' ' ,
    PRIMARY KEY ( PEER_ID )
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>CREATE_COMMUNITIES_TABLE</NAME>
    <TYPE>CREATION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    CREATE CACHED TABLE COMMUNITIES (
    COMMUNITY_ID VARCHAR(20) NOT NULL,
    COMMUNITY_KNOWN_AS VARCHAR(25) DEFAULT ' ',
    PRIMARY KEY ( COMMUNITY_ID )
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>CREATE_COMMUNITY_MEMBERS_TABLE</NAME>
    <TYPE>CREATION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    CREATE CACHED TABLE COMMUNITY_MEMBERS (
    COMMUNITY_ID VARCHAR(20) NOT NULL,
    PEER_ID VARCHAR(20) NOT NULL,
    PRIMARY KEY ( COMMUNITY_ID, PEER_ID )
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>DROP_PEER_TABLE</NAME>
    <TYPE>DELETION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    DROP TABLE PEERS IF EXISTS
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>DROP_COMMUNITIES_TABLE</NAME>
    <TYPE>DELETION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    DROP TABLE COMMUNITIES IF EXISTS
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>DROP_COMMUNITY_MEMBERS_TABLE</NAME>
    <TYPE>DELETION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    DROP TABLE COMMUNITY_MEMBERS IF EXISTS
    </SCRIPT>
    </SQL_SCRIPT>
    <SQL_SCRIPT>
    <NAME>CREATE_COMMUNITY_MEMBERS_VIEW</NAME>
    <TYPE>CREATION</TYPE>
    <APPLICATION>DawningStreams</APPLICATION>
    <SCRIPT>
    CREATE VIEW COMMUNITY_MEMBERS_VW AS
    SELECT P.PEER_ID, P.PEER_KNOWN_AS, C.COMMUNITY_ID, C.COMMUNITY_KNOWN_AS
    FROM PEERS P, COMMUNITIES C, COMMUNITY_MEMBERS CM
    WHERE P.PEER_ID = CM.PEER_ID
    AND C.COMMUNITY_ID = CM.COMMUNITY_ID
    </SCRIPT>
    <FOLLOWS>CREATE_PEERS_TABLE</FOLLOWS>
    <FOLLOWS>CREATE_COMMUNITIES_TABLE</FOLLOWS>
    </SQL_SCRIPT>
    </SQL_STATEMENT_LIST>
    Any ideas? Thanks !!!
    J�r�me Verstrynge

    Hi,
    I found the solution in the following post:
    Validate xml with DOM - no grammar found
    Sep 17, 2003 10:58 AM
    The solution is to add a line of code when parsing:
    try {
    Document document;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setValidating(true);
    factory.setNamespaceAware(true);
    factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.parse( new File(PathToXml) );
    The errors are gone !!!
    J�r�me Verstrynge

  • HT204093 the body of my email does not appear to the right when I select a mail message.

    The body of incoming mail messages do not appear to the right when I select a mail message?
    Anybody know how to adjust this?
    Jgm

    Hello!
    Please try these steps: Can't see email message content

Maybe you are looking for

  • Payment term configuration

    Hi All, We need a payment term configuration in FI as follows. Invoice date plus No.of grace days plus end of month (that means we have make payment on the last day of  month where the last grace day falls in that particular month) Thank in advance J

  • Problem in servlet compilation

    I explain the full senario: I have JavaWebServer1.1.3 installed on my PC. In the servlets directory I have created a folder named exam' and inside it another subfolder 'html' . In html folder all java files contain ' package html' as the top line. I

  • Aironet bridge 1310 - Speed rate

    Hello, I have installed a point-to-point link with two aironet bridge 1310 and Yagi antenna. My question is, given some different allowed speed rates, how can I check, using or CLI commands or web interface, at which speed rate my two bridges are eff

  • What does it mean when I see the file with the question mark on my screen?

    What does it mean when I see a file with a question mark on the screen?

  • Help please.  Is Photoshop Elements 12 fully compatible on Apple Mac OS 10.9.3?  Many thanks.

    Help please. I'm looking to buy Photoshop Elements 12 for a new MacBook Pro running OS 10.9.3. Could anyone confirm that Elements 12 would be fully compatible with this operating system? Info on the Adobe website suggests it will run on 10.9, but not