User Profile

Collapse

Profile Sidebar

Collapse
mharrison
mharrison
Last Activity: Jun 26 '08, 01:36 PM
Joined: Nov 13 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Found the issue

    I changed from an XSD to XDR schema

    and used the following:

    [HTML]<?xml version="1.0" ?>
    <Schema xmlns="urn:sche mas-microsoft-com:xml-data"
    xmlns:dt="urn:s chemas-microsoft-com:xml:datatyp es"
    xmlns:sql="urn: schemas-microsoft-com:xml-sql"
    sql:target-namespace="myta rgetnamespace">

    ...
    See more | Go to post

    Leave a comment:


  • mharrison
    started a topic Xml Bulk Load in SQL 2000 relationship error

    Xml Bulk Load in SQL 2000 relationship error

    Hi All,

    I'm using SQL 2000 and in a DTS I want to load in an error XML file to a SQL table.

    I am using the SQLXMLBulkLoad component in an Active X script.

    I have an XML file. see below, and also an XSD schema file. Could someone take a look and see where I am going wrong??!

    I get an error from SQL stating "Relationsh ip expected on errors"

    I need simply the contents...
    See more | Go to post

  • mharrison
    replied to Need Help Desperately
    in Java
    If you are referring to how you can import it to use into a class for reading operations, then use the import declaration at the top of your class. for example:

    Code:
    import java.io.BufferedReader
    See more | Go to post

    Leave a comment:


  • mharrison
    replied to SAX parser result to XML file
    in Java
    Lets say for example you had the following XML file:

    <root>

    <list>

    <item>

    <name>Carrots </name>

    </item>

    </list>

    </root>

    What are you doing with this file - anything? e.g. would you change Carrots to Oranges? What I am getting at is does your program modify the XML file before it is...
    See more | Go to post

    Leave a comment:


  • What techniques have you tried already? With java, there are 2 main ways of reading XML documents:

    1. DOM - Document Object Model interface. This loads the XML document into main memory. With the Document Object Model, you can build documents, navigate their structure, and add, modify, or delete elements and content. Basically the DOM specifies an abstract datatype for XML logical structure. In Java the API for this is known as JAXP...
    See more | Go to post

    Leave a comment:


  • I have a program that can convert word documents to RTF, TXT etc. If you want it send me a message, and I'll email it to ya.

    Its written in C# though, not java....
    See more | Go to post

    Leave a comment:


  • mharrison
    replied to Java Using Eclipse Beginner
    in Java
    sicarie, you have my vote on this one too. If you post some code, you will get a much better response.
    See more | Go to post

    Leave a comment:


  • mharrison
    replied to Arrays to DB
    in Java
    Hi,

    you can use serialization. This post on java's forum might be useful:

    http://forum.java.sun. com/thread.jspa?thr eadID=721459&ts tart=210

    Code:
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.util.Arrays;
    ...
    See more | Go to post

    Leave a comment:


  • Hey man,

    Easiest way of solving your problem is to use Math.pow

    Code:
    // File Name: PowerOf2.java
    // Name of Creator: MITCHEL WRIGHT
    // Date Started: 12-04-2006
    // Date Finished: 12-04-2006
    // Purpose: to find "2 to the power of #=____"
    // Assignment: Create a program that will tell you
    // "2 to the power of 0 is 1"-"2 to the power of 295 is
    ...
    See more | Go to post

    Leave a comment:


  • mharrison
    replied to How To Insert/Import Images in Jdeveloper
    in Java
    try reading this:

    http://forum.java.sun. com/thread.jspa?thr eadID=550457&me ssageID=2776144...
    See more | Go to post

    Leave a comment:


  • mharrison
    replied to Small Calculation Help
    in Java
    normally i wouldn't help as the deadline is so close. but i was bored. The trick is to work out the remainders using modulo (%) and then use a simple division to get the amounts.

    hence:

    Code:
        public void timeConvert(int secs) {
    //         int secs = 95362875;
    
            // first set up the constant values for time.
            int YearSecVal = 60 * 60 * 24 * 7 * 52;
    ...
    See more | Go to post

    Leave a comment:


  • mharrison
    replied to Really need help
    in Java
    In java, there is a modulo operator, so you can determine whether an int is an odd or an even number . for example:

    Code:
    public void checkNumber(int x) {
    
    if (x % 2 == 0) {
      // then we have an even number
    System.out.println(x + " is an even number")
    }
    
    if (x % 2 != 0) {
      // then we have an odd number
    System.out.println(x + " is an odd number")
    ...
    See more | Go to post

    Leave a comment:


  • mharrison
    replied to Java Using Eclipse Beginner
    in Java
    Is this the code for the exercise you can't do? If it isn't (which I'm assuming is the case) then post what you have of the code you have done, and we'll take a look.

    mharrison
    See more | Go to post

    Leave a comment:


  • mharrison
    replied to Java Using Eclipse Beginner
    in Java
    You'd normally not find anyone here who will write the program you are looking for without first attempting a solution. As your new to java, what thoughts have you got on this problem?

    An initial thought could be that you could have a class to represent a Bank. From this, you could initiate a transaction to access an account, and since you know what type of transactions you will have: W, L or X,

    this part should be...
    See more | Go to post

    Leave a comment:


  • mharrison
    replied to Java/HTML buttons and forms help
    in Java
    If you are trying to do something with buttons and javascript, heres an idea. Not sure if it's exactly what you want.....

    Paste this HTML code into a text editor and save as a HTML page:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    
    <script type="text/javascript"
    ...
    See more | Go to post

    Leave a comment:


  • adding about on right click menu of vb program

    hi all,

    i want to add an addition to the existing windows menu in a program i am writing in vb in visual studio 2005. basically i want it to be like this

    Restore, Maximize, Minimize etc and then have a bar separating to my menu item of "about" or something similar

    This menu is shown by right clicking on the application in the task bar when running.

    Does anyone know where to begin...
    See more | Go to post

  • mharrison
    replied to Battleships game
    in Java
    Hi again,

    Have a look at this:

    http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JButton.html

    It may help
    See more | Go to post

    Leave a comment:


  • No worries peeps

    I've sorted it now. the dll i was using was an interface, and the actual COM object wasn't registered on my machine, but it is now

    thanks

    mark
    See more | Go to post

    Leave a comment:


  • mharrison
    replied to Two Syntax errors that I can't figure out
    in Java
    Hello

    Your code only needs small modification:

    Code:
    class numbers{
    static int numbers[] = new int[15];
    public static void produce(int n){
    
    if(n < 2)
    numbers[n] = n;
    else
    numbers[n] = numbers[n-1] + numbers[n-2];
    }
    
    public static void print(){
    
    for(int k = 0; k < 15; k++)
    System.out.println(numbers[k]);
    }
    ...
    See more | Go to post
    Last edited by mharrison; Nov 17 '06, 03:40 PM. Reason: Put an extra < in code

    Leave a comment:


  • mharrison
    started a topic Visual Studio 2005 Reference Problem

    Visual Studio 2005 Reference Problem

    Hi All,

    This is probably a simple problem to fix but I am a NOOB at VB and visual studio 2005 !

    I'm amending an existing project to suit my needs. It imports a number of csvs into an sql database. any way.... I am using a reference in my project called Interop.CSVImpo rt. This is a COM active X DLL but when I try to add it to my project, it declares it of .NET type, and then I get an unhandled COM exception when I build...
    See more | Go to post
No activity results to display
Show More
Working...