Hello!
I want to have JAXB-annotated classes which would be
marshalled/unmarshalled to different XML namespaces.
What I need is something like:
<someRootElement xmlns="urn:my:ns1"
xmlns:a="urn:my:ns2" xmlns:b="urn:my:ns3">
<someElement/>
<a:someElement/>
<b:someElement/>
</someRootElement>
How can it be done?
Can it be ...
This may be a daft question as I can see the security reason for it to happen the way it does...
I have a licensing c# project, this has a class which has a method which generates my license keys. I have made this method private as I do not want anybody else to be able to call my method for obvious reasons
The next thing I want to do i...
What neat ways do you use for declaring JavaScript namespaces. I've come across this one:
if (Foo == null || typeof(Foo) != "object") { var Foo = new Object();}
Is there a more elegant or succinct way of doing this?
Just a bit of fun...
...
I have VS2005 and VS2008 Side by side (I just installed VS2008). When I run SubCommander in VS2005, everything works perfectly. However, when I run it in VS2008, my generated classes are not found in the IDE. Is there a configuration change, or something I'm missing?
Thanks,
...
I have some PHP code similar to the following:
foreach ($settingsarray as $settingsfile)
{
include ($settingsfile);
// do stuff here
}
$settingsarray is an array of file names from a particular folder.
The problem is, that each $settingsfile defines constants (with the same names), which of course, can not be redefined.
Wh...
Hey !
I really need to add a certain namespace to a SOAP Envelope which is not specified in the WSDL for some reason I already tryed using the 'uri' parameter in the SoapCliente constructor but it's not working
how can I add this namespace to the SoapEnvelope ?
thanks in advance
...
Hello.
Is there a way to generate a unique data contract namespace for generic types (similiar to data contract name) in C#?
I'd like to do something like this, where {0} in the namespace value would be replaced by the specific data type name.
[DataContract(Name = "DataResult_{0}", Namespace = "CommonTypes_{0}"]
public class DataResu...
I'm new to rails and can't figure out this issue...
I have a controller
Admin::Blog::EntriesController
defined in app/controllers/admin/blog/entries_controller.rb
And I have a model called
Blog::Entry
defined in app/model/blog/entry.rb
When I try to access my model from the controller, I get a "uninitialized constant Admin::Blog...
OK. This is insane.
I'm new to RoR and I really want to get into it as everything about it that I have seen so far makes it more appealing to the type of work that I do.
However, I can't seem to accomplish a very simple thing with RoR.
I want these controlers:
/admin/blog/entries (index/show/edit/delete)
/admin/blog/categories (index...
I understand the pros of using namespaces within the actual application layers but when it comes to the front tier, I am not so sure.
My project is a Website (not WebApplication) and I get all sorts of problems (missing references, for one) when I try and include "namespaced" user controls. Despite explicit declarations in web.config u...
Hi I am trying to get my mind around XSDs, XML and namespaces but I can't get things to work the way I want them to.
I have an XSD which, at the moment, starts like this:
<xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.ex...
For those of you out there writing reusable components, what do you consider to be best practice if your extending the functionality of the .NET framework?
For example, I'm creating a Pop3 library at the moment as one doesn't exist in .NET. Do I create a custom namespace or do I use System.Net.Mail ?
...
Hi,
i have to create xml something like:
<xml version="1.0" encoding="UTF-8"?>
<tns:Message>
<tns:Header>
<tns:to>CCM</tns:to>
<tns:from>CPM</tns:from>
<tns:type>New</tns:type>
</tns:Header>
</tns:Message>
from my java object.
I am trying to do something like this
DocumentBuilderFactory factory
...
I want to learn how to process XML with namespaces in E4X so basically here is what I want to learn, say I have some XML like this:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/">
<rdf:item value="5"/>
<item value="10"/>
</rdf:RDF>
How could I assign < rdf:item /> to a v...
My application has a button to execute a python script dynamically using execfile. If I define a function inside the script (eg. spam()) and try to use that function inside another function (eg. eggs()), I get this error:
NameError: global name 'spam' is not defined
What is the correct way to call the spam() function from within eggs...
Hi:
This feed (snippit of it) needs to look exactly like this:
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
what do I add to this C# code to add that extra xmlns, xsi junk:
writer.WriteStartDocument();
writer.WriteStartElement("AmazonEnvelop...
Files and directories could have different namespaces, and still be used to identify specific files, because a file and directory with the same name can be distinguished by being different kinds of things.
Primitive field and reference fields could also have different namespaces (in Java), because if a primitive and a reference field ha...
I am trying to create an element in an XML schema such that only standard (X)HTML elements can be used as children. What I've tried is this:
<xs:element name="description">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:any namespace="http://www.w3.org/1999/xhtml" />
</xs:sequence>
</xs:co...
I have a solution with 2 projects.
One, Raven, is a simple base that provides data for the second project, PPather, to do stuff with. The second project depends on the first to compile so to build it, I add a reference to Raven. All works well so far.
Now I want Raven to launch PPather. But it can't see the PPather naemspace so I ca...
I was looking at this question and I wondered to myself are there any design patterns/rules of thumb that you can use when breaking up your project into packages/assemblies.
I usually don't seem to have any issues with this as I tend to just break stuff up into packages/assemblies such that each does as little as possible that is releva...