Pblem building bdb xml

hi
after building BDBXML_all.dsw with visual studio c++ i have those message
--------------------Configuration: xqilla - Win32 Debug--------------------
Compiling...
XPath2ResultImpl.cpp
C:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\dom-api\impl\XPath2ResultImpl.cpp(287) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1786)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
PrintAST.cpp
C:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\utils\PrintAST.cpp(132) : error C2371: 'it' : redefinition; different basic types
C:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\utils\PrintAST.cpp(109) : see declaration of 'it'
C:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\utils\PrintAST.cpp(133) : error C2446: '!=' : no conversion from 'class XQGlobalVariable const ' to 'class XQQuery const '
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\utils\PrintAST.cpp(133) : error C2230: '!=' : indirection to different types
C:\Program Files\Oracle\Berkeley DB XML 2.3.10\xqilla\src\utils\PrintAST.cpp(134) : error C2664: 'printGlobal' : cannot convert parameter 1 from 'class XQQuery const ' to 'const class XQGlobalVariable '
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
dbxml_example_addIndex.exe - 5 error(s), 0 warning(s)
can some body help me
regards
louzar

Hi,
This is a compiler problem. Try reinstalling your compiler and rebuild your Berkeley DB XML libraries. Apply all the service packs to VS C++ 6.0.
Have you tried building a simple C++ application to verify if the compiler works fine ?
This problem may be generated by the compiler not having sufficient memory. Also, take a look on the following:
http://support.microsoft.com/kb/q192539/
http://averia.unm.edu/VisualCPPErrorMessages.html
http://msdn2.microsoft.com/en-us/vstudio/aa718364.aspx
Regards,
Andrei

Similar Messages

  • Any Windows 7 64bit version for bdb xml available?

    Dear experts,
    I received the following:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Oracle\Berkeley DB XML 2.5.16\bin\libdb_java48.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
         at java.lang.Runtime.loadLibrary0(Runtime.java:823)
         at java.lang.System.loadLibrary(System.java:1028)
         at com.sleepycat.db.internal.db_javaJNI.<clinit>(db_javaJNI.java:38)
         at com.sleepycat.db.internal.DbEnv.<init>(DbEnv.java:264)
         at com.sleepycat.dbxml.XmlManager.<init>(XmlManager.java:77)
         at com.sleepycat.dbxml.XmlManager.<init>(XmlManager.java:101)
         at berkeleydbxml.BDBXML.createContainer(BDBXML.java:29)
         at berkeleydbxml.BDBXML.main(BDBXML.java:173)
    Process exited with exit code 1.
    I do not have any visual studio version installed to rebuild the source.
    Is there a way of having the bdb xml working with a 64bit jdk?
    Is it possible to get a 64bit compatible version of dbxml-2.5.16.msi?
    TIA!

    I'm having a problem building for the x64 platform using a 64-bit Windows 7 Pro system with Visual Studio 8 and dbxml 2.5.16. Building for Win32 works just fine. When I switch to the x64 platform, the build skips every project:
    ========== Build: 0 succeeded or up-to-date, 0 failed, 52 skipped ==========
    Looking in the Configuration Manager, every project shows the x64 platform; but selecting one of these platform menus reveals that x64 isn't an option in the menu and the platform for that project is automatically changed to Win32 (the only valid option).
    The same problem occurs with dbxml 2.5.13 and Windows XP.
    Any ideas?

  • How to install BDB XML on shared server?

    Hi All,
    1. I want to install BDB XML on a shared server (bluehost). Can anyone suggest me how to do it? Since I dont have enough permissions, some of the 'php shared extensions' are not being installed. I get warning like-
    Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20060613/
    cp: cannot create regular file `/usr/lib/php/extensions/no-debug-non-zts-20060613/#INST@343#': Permission denied
    make: *** [install-modules] Error 1
    2. Also, how can I add new libraries to library path? (Again no permission)
    Any help on these issues would be highly appreciated,
    Thanking you in anticipation.

    I'm talking about Berkeley DB XML, just in case it was not clear.

  • Issues while iterating BDB XML

    Hello there,
    to begin with the issue, I've got a BDB XML, with couple of inserted documents. Using Java API.
    I'm creating an application which integrates the database within and displays the contents (that is, documents) of a container in a JTree.
    Next, I've overridden toString() of XmlDocument:
    class MyTreeModelChild extends XmlDocument{
        ContainerManager cmanager; //ContainerManager is the class, which deals with the environments settings, opening containers, putting documents etc.
        public MyTreeModelChild(XmlDocument v, ContainerManager cmanager) throws Exception{
            super(v);
            this.cmanager = cmanager;
        public String toString(){
            //executeQuery is the method, which executes XPath queries. It's located in ContainerManager class and takes a string argument
            try{
                XmlResults xResults = cmanager.executeQuery("collection('demo.dbxml')/info/title/string()");
                while(xResults.hasNext()){
                    XmlValue value = xResults.next();
                    return value.asString();
                return null;
            catch(Exception e){
                return e.toString();
    }The content of XML documents (don't mind the validation, that's an example):
    first.xml
    <info>
       <title>One</title>
    </info>
    second.xml
    <info>
       <title>Two</title>
    </info>Finally, I run the compiled code and watch the documents appear in the tree. They both have same titles (the second document is overridden by the first):
    -One
    -OneIf I check the query using dbxml shell, everything's nice:
    -One
    -TwoAny ideas, suggestions?
    Andy

    John,
    thank you for the reply.
    Indeed. The query returns the title of every document.
            try{
                XmlResults xResults = cmanager.executeQuery("collection('demo.dbxml')/info/title/string()");
                while(xResults.hasNext()){
                    XmlValue value = xResults.next();
                    return value.asString();
                }I execute the query and while it has some results to return, do the loop. Take the first value as a XmlValue and return it as String. If I have more results (in this case -- yes, I do), the loop runs again.
    Unfortunately, I cannot figure out what's from now on. The loop will return the same value.
    I'm nor a geek in BDB XML neither in Java. Almost there, just a few obstacles in the way :)

  • FlexUnit4SampleCIProject will not build for me with build.air.xml

    I have I6 of Burrito. I downloaded the FlexUnit4SampleCIProject and followed set-up instrucitons on this page:
    http://docs.flexunit.org/index.php?title=Ant_Task
    When I leave in all the default source and run it using:
    ant -v -f build.air.xml clean package
    it goes for awhile and then fails with a:
    BUILD FAILED
    /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/build .air.xml:65: Could not create application descriptor
    What am I doing wrong? Here is the full log from terminal on my Mac running Snow Leopard with ant 1.8:
    admin-MacBookPro:FlexUnit4SampleCIProject brantner$ ant -v -f build.air.xml clean package
    Apache Ant version 1.8.1 compiled on September 21 2010
    Buildfile: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/buil d.air.xml
    Detected Java version: 1.6 in: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    Detected OS: Mac OS X
    parsing buildfile /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/buil d.air.xml with URI = file:/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject /build.air.xml
    Project base dir set to: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject
    parsing buildfile jar:file:/usr/share/java/ant-1.8.1/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/usr/share/java/ant-1.8.1/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
    [property] Loading Environment env.
    Build sequence for target(s) `clean' is [clean]
    Complete build sequence is [clean, init, compile, test, package, ]
    clean:
       [delete] Deleting directory /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et
       [delete] Deleting directory /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/bin
       [delete] Deleting directory /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/dist
       [delete] Deleting directory /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/report
       [delete] Deleting directory /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et
    Build sequence for target(s) `package' is [init, compile, test, package]
    Complete build sequence is [init, compile, test, package, clean, ]
    init:
        [mkdir] Created dir: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et
        [mkdir] Created dir: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/bin
        [mkdir] Created dir: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/report
        [mkdir] Created dir: /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/dist
    compile:
        [mxmlc] Loading configuration file /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/flex-config.xml
        [mxmlc] Required RSLs:
        [mxmlc]     framework_4.5.0.20135.swf with 1 failover.
        [mxmlc]     textLayout_2.0.0.232.swf with 1 failover.
        [mxmlc]     spark_4.5.0.20135.swf with 1 failover.
        [mxmlc]     sparkskins_4.5.0.20135.swf with 1 failover.
        [mxmlc]     mx_4.5.0.20135.swf with 1 failover.
        [mxmlc] /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/bin/Main.swf (63438 bytes)
    test:
    [flexunit] Validating task attributes ...
    [flexunit] Generating default values ...
    [flexunit] Using the following settings for compilation:
    [flexunit]     FLEX_HOME: [/Applications/Adobe Flash Builder 4.5/sdks/4.5.0]
    [flexunit]     player: [air]
    [flexunit]     sourceDirectories: ["/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/sr c/main/flex"]
    [flexunit]     testSourceDirectories: ["/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/sr c/test/flex"]
    [flexunit]     libraries: ["/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/li bs/flexunit-aircilistener-4.1.0.swc","/Users/brantner/Documents/burrito/flexunit-flexunit- d3a56a1/FlexUnit4SampleCIProject/libs/flexunit-cilistener-4.1.0.swc","/Users/brantner/Docu ments/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/libs/flexunit-core-flex-4 .1.0.swc","/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIPr oject/libs/flexunit-uilistener-4.1.0.swc"]
         [null] Executing '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java' with arguments:
         [null] '-jar'
         [null] '/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/lib/mxmlc.jar'
         [null] '--version'
         [null]
         [null] The ' characters around the executable and arguments are
         [null] not part of the command.
         [null] Output redirected to property: SDK_VERSION
    [flexunit] Found SDK version: 4
    [flexunit] Created test runner at [/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/tar get/bin/TestRunner.mxml]
    [flexunit] Compiling test classes: [org.flexunit.demo.EchoPanelTest, org.flexunit.demo.SampleTest]
    [flexunit] Executing '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java' with arguments:
    [flexunit] '-Xmx256M'
    [flexunit] '-jar'
    [flexunit] '/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/lib/mxmlc.jar'
    [flexunit] '+flexlib'
    [flexunit] '/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks'
    [flexunit] '+configname=air'
    [flexunit] '-output'
    [flexunit] '/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/tar get/bin/TestRunner.swf'
    [flexunit] '-source-path'
    [flexunit] '/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/src /main/flex'
    [flexunit] '/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/src /test/flex'
    [flexunit] '-library-path+=/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4Samp leCIProject/libs/flexunit-aircilistener-4.1.0.swc'
    [flexunit] '-library-path+=/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4Samp leCIProject/libs/flexunit-cilistener-4.1.0.swc'
    [flexunit] '-library-path+=/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4Samp leCIProject/libs/flexunit-core-flex-4.1.0.swc'
    [flexunit] '-library-path+=/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4Samp leCIProject/libs/flexunit-uilistener-4.1.0.swc'
    [flexunit] '-headless-server=true'
    [flexunit] '/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/tar get/bin/TestRunner.mxml'
    [flexunit]
    [flexunit] The ' characters around the executable and arguments are
    [flexunit] not part of the command.
    [flexunit]
         [null] Error redirected to property: MXMLC_ERROR
         [null] Loading configuration file /Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/air-config.xml
         [null] /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/targ et/bin/TestRunner.swf (491869 bytes)
    [flexunit] Using the following settings for the test run:
    [flexunit]     FLEX_HOME: [/Applications/Adobe Flash Builder 4.5/sdks/4.5.0]
    [flexunit]     haltonfailure: [false]
    [flexunit]     headless: [false]
    [flexunit]     display: [99]
    [flexunit]     localTrusted: [true]
    [flexunit]     player: [air]
    [flexunit]     port: [1024]
    [flexunit]     swf: [/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/tar get/bin/TestRunner.swf]
    [flexunit]     timeout: [60000ms]
    [flexunit]     toDir: [/Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/tar get/report]
    [flexunit] Setting up server process ...
    [flexunit] Starting server ...
         [null] Executing '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java' with arguments:
         [null] '-jar'
         [null] '/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/lib/adt.jar'
         [null] '-version'
         [null]
         [null] The ' characters around the executable and arguments are
         [null] not part of the command.
         [null] Output redirected to property: AIR_VERSION
    [flexunit] Opening server socket on port [1024].
    [flexunit] Waiting for client connection ...
    BUILD FAILED
    /Users/brantner/Documents/burrito/flexunit-flexunit-d3a56a1/FlexUnit4SampleCIProject/build .air.xml:65: Could not create application descriptor
        at org.flexunit.ant.launcher.commands.player.AdlCommand.createApplicationDescriptor(Unknown Source)
        at org.flexunit.ant.launcher.commands.player.AdlCommand.prepare(Unknown Source)
        at org.flexunit.ant.launcher.contexts.DefaultContext.start(Unknown Source)
        at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
        at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
        at org.apache.tools.ant.Main.runBuild(Main.java:801)
        at org.apache.tools.ant.Main.startAnt(Main.java:218)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
    Total time: 18 seconds
    admin-MacBookPro:FlexUnit4SampleCIProject brantner$
    Thanks,
    Brian

    Mean the one for i6.. we monitor that as well.
    Or just reach out to me offline:
    my last name at digitalprimates dot net
    Mike

  • Build a xml editor using swing

    I would like to know a simple way to build a xml editor using swing. The editor should present the xml in a tree structure, THe user should be able to modify the xml in the editor and save it.

    Try reading this from [The XML Tutorial|http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPDOM4.html#wp64247] for discovering how to display the XML tree first, this is the first point to build a XMLNotepad like solution.

  • BDB XML 2.2.13 on Linux (CentOs)

    I installed BDB XML 2.2.13 on Linux machine. I have a few questions:
    1. How do I set DB_HOME so that I don't need to give directory each time I run dbxml?
    2. How do I create a container inside of another container: by saying this, the path I am looking for is db/tv_show. I want to have a container called "db" and inside of the container would be "tv_show"
    3. How can I list all the containers that I have already created?
    Thanks.

    Hi Agnes,
    1) DB_HOME was broken in DB XML 2.2.13. It has been fixed in DB XML 2.3.9, which I suggest you upgrade to.
    2) DB XML does not directly support creating containers inside other containers. You could emulate this behaviour using a custom XmlResolver, but for performance reasons I don't suggest you do that.
    3) DB XML does not keep track of what containers exist - that is left for the user application to do. Most people find that this isn't necessary, but if it is a simple solution is to create a known container specifically to hold this information.
    John

  • Installing BDB XML and including it into a java application

    Hi there :)
    I'm new to BDB XML and I've got some questions about it :
    1/ The documentation says about BDB XML that it is based on BDB. Does it mean that I need to install the standard BDB first to use BDB XML ? (I'm pretty sure I don't have to but I would like a confirmation =))
    2/ I want to developp a web application which will use BDB XML. The documentation says I need to add some jars into my project to use it but do I need to install it on my computer (Windows XP) first ? (with the .msi file ?)
    3/ Where will the xml files be physically stored after I add them into the database ? (what is the default database folder on the hard disk ?)
    Thank you for you help :)
    Regards,
    Gary

    Hi Gary,
    1) You need to install only DB XML. BDB is bundled with DB XML, so you don't have to worry.
    2) Yes, you need to add two jars: db.jar and dbxml.jar. But these jars depend on native DB XML libraries, so you will have to install DB XML anyway: only jars wouldn't be sufficient. Moreover, I would recommend to install DB XML from sources providing the --enable-java+ flag to the buildall.sh script
    3) All XML files will be stored in a container or containers (depending on how many of those you will decide to utilize in your application). It is up to you where you are going to reside DB XML environment/containers -- DB XML is quite low-level XML-database.
    Hope this helps,
    Vyacheslav

  • How to output full-text document from BDB-XML

    I put a XML document(test.xml) into BDB-XML; Edit and modify use BDB-XML API.
    After, if I want to output(roll out) my XML document(test.xml) which was storage in BDB-XML.
    Are there any support in BDB-XML API or Shell to output full-text document from DB??
    Thank you very much :)

    In the shell:
    dbxml> getDocument "document name"
    dbxml> print ["output_file_name"]
    In a (Java) program:
    XmlDocument doc = container.getDocument("document name");
    String output = doc.getContentAsString();
    Regards,
    George

  • Error build-impl.xml:577:

    i using netbeans 6.8 and while running my program an error "build-impl.xml:577: The module has not been deployed" occured . my web.xml file is shown below
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
        <context-param>
            <param-name>no</param-name>
            <param-value>100203231982381</param-value>
        </context-param>
        <servlet>
            <servlet-name>servlet1</servlet-name>
            <servlet-class>servlet1</servlet-class>
        </servlet>
        <servlet>
            <servlet-name>listener</servlet-name>
            <servlet-class>listener</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>servlet1</servlet-name>
            <url-pattern>/s1</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>listener</servlet-name>
            <url-pattern>/l1</url-pattern>
        </servlet-mapping>
        <listener>
            <listener-class>listener</listener-class>
        </listener>    
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
    </web-app>i m trying to use context parameter in my servlets there are two servlets one is listener.java which implements ServletContextListener another is servlet1.java i dont undertand the error everything is fine in both the files plz help me

    The <servlet-class> tag should contain the fully qualified name of the Servlet eg "com.something.Servlet1"
    If they are in the default package you may want to move them to avoid any unexpected behaviour - link explains:
    http://faq.javaranch.com/java/PackageYourBeans
    m

  • How to Build a XML Schema myself ?

    I have a large xml document to be parsed
    DTD just can tell me whether the file is well-construct .
    I want to build a xml schema...but I have no resourse about this .
    can sb tell me the way ? better give me a sample .
    null

    I'd recommend getting started with a tool like XML Spy 3.5 from Altova (www.altova.com) or XML Authority from Extensibility (www.extensibility.com). I've used both and both are very capable.

  • Building an XML file

    I'm trying to build an XML file in Java to persist data for an application between sessions. I'd like to build a structure like this
    <Files>
    <Entry>somefile.txt</Entry>
    <Entry>otherfile.txt</Entry>
    </Files>
    How can I do this using JDK 1.4? I've figured out how to generate it with attributes:
    <Files>
    <Entry entry=somefile.txt/>
    <Entry entry=otherfile.txt/>
    </Files>
    But that's not the way I need to do it. Can anyone make a suggestion?
    Thanks.

    You need to create Text nodes and append them to your Entry nodes. Say you have a Document, doc:
    Element files = doc.createElement("Files");
    doc.appendChild(files);
    Element Entry = doc.createElement("Entry");
    files.appendChild(entry);
    Text text = doc.createTextNode("somefile.txt");
    entry.appendChild(text);Output:
    <Files>
    <Entry>somefile.txt</Entry>
    </Files>
    Hope that helps.

  • Some doubt about Bdb XML Normal Recovery

    Hi, everyone
    I have read the document Getting Started with Transaction Processing for Java shipped with Bdb XML 2.4.13. In the book, there is something about Normal Recovery:
    Normal recovery is run only against those log files created since the time of your last checkpoint.To test this, I have designed a scenario as below:
    The ENVIRONMENT directory is under E:/bdb-xml/environment, and the BACKUP directory is under E:/bdb-xml/backup, the CONTAINER name is entry.dbxml, and there is already a document 1.xml in this container.
    1. run db_recover against ENVIRONMENT.
    2. copy entry.dbxml to BACKUP.
    3. create a document 2.xml.
    4. run checkpoint against ENVIRONMENT.
    5. modify document 1.xml.
    6. run checkpoint against ENVIRONMENT.
    7. copy log.0000000001(there is only one log file in ENVIRONMENT) to BACKUP, Note that I didn't copy the entry.dbxml in ENVIRONMENT.
    8. run db_recover agaist BACKUP(now there are 2 files : entry.dbxml, log.log.0000000001).After that, I used the BACKUP as environment directory, and try to query 2.xml. And I retrieved the document correctly, which I feel very curious. As the document says, the last checkpoint is created by step 6, after that, there is no other modifications happens, so the modification happened at step 3 and step 5 will not take effect when db_recover executed. But the two changes have committed to entry.dbxml.
    So, which is the last checkpoint. And what is the those log files created since the time of your last checkpoint.
    I also want to know where the checkpoint be writen, in the db files or the log files.
    thanks advance.
    Regards,
    John Kao.

    Jhon,
    You really do want to know the gory details don't you? :-)
    Running recovery in your backup directory will cause the container there to pick up all changes from the log file that it does not yet have. The checkpoint on the original container doesn't mean anything to the backup container.
    Let me point you to even more interesting documentation that is in the Berkeley DB documentation set. This page has all of the BDB documentation, including links that are not included in the BDB XML doc:
    http://www.oracle.com/technology/documentation/berkeley-db/db/index.html
    The "Getting Started with Transaction Processing" documents on that page have the sort of information you seem to want.
    Regards,
    George

  • Correct installation of BDB XML on Mac OS X, and use with XCode

    I downloaded the tarball, compiled the whole thing without a problem, and then copied the contents of the install directory to /usr/ (trying to change the prefix on the configure script stopped it from compiling, for some reason) because I didn't want to add stuff to my path (and the contents looked like they belonged in /usr anyway)
    But now I'm not sure how to get XCode to find the search paths and libraries. Does anyone who has a working installation of BDB XML on mac os feel like giving me some pointers as to how they did it?
    Thanks,
    Daniel Peebles

    I don't know the exact answer to your question, but you can probably figure it out on your own like:
    1) Create a File object that represents an existing file. Play around with the path until the file can be found.
    2) Now that you have a File object representing a valid, existing path, use MyFile.getAbsolutePath() to see what the full path string is. MyFile.getCanonicalPath() might provide some answers as well.
    Whatever getAbsolutePath() returns is the correct format for the file path string.

  • Multimedia Information on BDB XML

    Hello,
    I was searching on google for some databases that support multimedia information, as the project I'm working on will need it. Most DBMSes provide a BLOB field where you can store any kind of MM information on it.
    Some folks advised me to use the filesystem itself and avoid the DB for this kind of storage. But I wonder, how can you assure integrity, if the information on the fs can be moved, erased, changed in so many ways, and the DB would be unaware of this. I dont think this is a good solution.
    So, does BDB XML provide support for MM information?
    thanks,
    -- Breno Jacinto

    Breno,
    Storing binary information in BDB XML metadata or in Berkeley DB records would maintain the integrity of the data, and ensure that it's as safe as the rest of your data. It also makes backup/restore of the complete system simpler. The arguments against doing this include:
    o storing/retrieving binary data happens through the cache, so your cache ends up abused by the binary information, possibly flushing valuable information such as indexes and frequently-accessed content. This has performance implications, and can result in more disk activity when querying your containers than would normally occur.
    o without special streaming support, it's hard to stream binary data reliably from the database (not a problem if your data is relatively small)
    As for storing binary info in the file system and linking it (via names) to your XML, it's not hard to provide as much protection for that data as you do for your database. The database files are just files in the file system themselves, and subject to the same attacks as normal files.
    If you protect your binary files with the same level of protection as your database files, they are safe. The major down sides of separate storage are:
    o you don't have transactions on the file system, so you need to program in a way to ensure that your database and binary data are in sync.
    o backup and restore are more complicated (mentioned above)
    Better support for large binary objects is on the list for a future release of Berkeley DB, and that support will address the issues; however, that's not an option today.
    I hope this helps,
    George

Maybe you are looking for

  • How to make top level navigation not refresh

    Hello Guys, I have a question concerning on my External Facing Portal, my boss wants that when I click on a tab or a link in the Top Level Navigation , to load the content in the Content Area without refreshing the whole page, What I want is that whe

  • Corrupted 80% file Illustrator  CS3 with MAC OSX 10.5.4

    I dont succeed to open the greater part of our file CS2 and CS3 saved in local or in network. this is the error message: "impossible to read the file because plug-in it has not been able to interpret these file". original its in IT lenguage :"Impossi

  • How to transfer stuff from Iphone 3gs to new laptop....

    I had an old laptop with all the same info as on my Iphone 3gs. That laptop crashed so I got a new one. I wanT to transfer stuff from my Iphone to the laptop itself. Only I don't know how to do that. It's a windows 7 laptop.  Thanks to all. Cheerio! 

  • URGENT Please help flash 8 components

    I have written a .exe application that has a email submission form at the end, the form is built up of flash 8 components. The component ids are as follows: fname.text; femail.text; fmessage.text; fcountry.text; fsubject.text; On my submit code i hav

  • ERR-1013 when viewing APEX page

    Hey all, I setup a security policy on one of our data tables to limit the data based on the user that is logged into the APEX application. The users click on a tab to take them to our main query screen (which queries the secure table) and receive thi