473,395 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Need help using Classes

I have converted a schema to a VB.NET class for use in ASP.NET. This schema
also used elements from the Dublin Core schema, so this was also converted to
a VB.NET class.

Everything works fine except when I try to use any of the elements from the
DublinCore (DC) class. I can't seem to figure out how to set any values.

The main one I'm struggling with is setting the value of the dcTitle property.

Can anyone help me please?

To save posting all the code, I've zipped up the files, which you can
download from http://mparter.pwp.blueyonder.co.uk/downloads/code.zip
Jun 3 '06 #1
2 877
Mark,
I have no idea what this is all for, but the only title I find goes like so:

Dim title As New purl.org.dc.elements.title()
title.__lang = "English"
title.Any.InnerText = "Whatever"

Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Mark Parter" wrote:
I have converted a schema to a VB.NET class for use in ASP.NET. This schema
also used elements from the Dublin Core schema, so this was also converted to
a VB.NET class.

Everything works fine except when I try to use any of the elements from the
DublinCore (DC) class. I can't seem to figure out how to set any values.

The main one I'm struggling with is setting the value of the dcTitle property.

Can anyone help me please?

To save posting all the code, I've zipped up the files, which you can
download from http://mparter.pwp.blueyonder.co.uk/downloads/code.zip

Jun 4 '06 #2
Hi Peter,

Sorry, should've explained it better. I've got some XML Schemas which I've
"converted" to VB.NET classes. When I'm then serializing this back to XML, I
need the title element to be like so:

<dc:title>some value</dc:title>

I'd already tried what you are suggesting but I get a 'Object reference not
set to an instance of an object' error on the Innertext line.

Is that any clearer?

Thanks,

Mark

"Peter Bromberg [C# MVP]" wrote:
Mark,
I have no idea what this is all for, but the only title I find goes like so:

Dim title As New purl.org.dc.elements.title()
title.__lang = "English"
title.Any.InnerText = "Whatever"

Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Mark Parter" wrote:
I have converted a schema to a VB.NET class for use in ASP.NET. This schema
also used elements from the Dublin Core schema, so this was also converted to
a VB.NET class.

Everything works fine except when I try to use any of the elements from the
DublinCore (DC) class. I can't seem to figure out how to set any values.

The main one I'm struggling with is setting the value of the dcTitle property.

Can anyone help me please?

To save posting all the code, I've zipped up the files, which you can
download from http://mparter.pwp.blueyonder.co.uk/downloads/code.zip

Jun 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Julia | last post by:
Hi I have a domain model and I am looking for the correct design patterns to use, The following is my domain model Server-> the is the thread boundaries,the server create a thread the...
11
by: Micha | last post by:
Hello there, I think I've run into some classic c++ pitfall and maybe some of you guys can help me out. For my project I will need to use matrices and vectors and so I decided to implement them...
5
by: Benne Smith | last post by:
Hi, I have three enviroments; a development, a testing and a production enviroment. I'm making a big application (.exe), which uses alot of different webservices. I don't use the webservices...
3
by: Jim Frazer | last post by:
Hi, I'm new to C#, but experienced in C++. I'm converting an ActiveX object to C#. There is a single instance of a "primary" class which creates two collections of other "secondary" classes. ...
10
by: Luke Meyers | last post by:
So, just a little while ago I had this flash of insight. It occurred to me that, while of course in general there are very good reasons for the conventional two-file header/implementation...
18
by: bsruth | last post by:
I tried for an hour to find some reference to concrete information on why this particular inheritance implementation is a bad idea, but couldn't. So I'm sorry if this has been answered before....
3
by: LW | last post by:
Hi! I am getting the following error message for my fairly simple web service. I have classes and have two DataSets that reference the same classes. The error is: The XML element named...
1
by: Tyno Gendo | last post by:
Hi everyone I need to move on a step in my PHP... I know what classes are, both in PHP4 and 5 and I'm aware of "patterns" existing, but what I'm looking for are some real world projects eg....
0
by: dihola | last post by:
Hi all, I am developing 2 websites (A and B) that share a lot of pages and classes, and I wonder if I am doing it the right way. I have extracted the common classes and created master pages for all...
3
by: Matthew Wilson | last post by:
I started with a module with a bunch of classes that represent database tables. A lot of these classes have methods that use other classes inside, sort of like this: class C(object):...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.